Skip to content

Commit 0d5cdaf

Browse files
committed
2 parents f003bea + 1121f6f commit 0d5cdaf

File tree

18 files changed

+144
-105
lines changed

18 files changed

+144
-105
lines changed

app/src/pages/AccordionGroup.jsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,18 @@ function App() {
3939
</DxcAccordionGroup.Accordion>
4040
</DxcAccordionGroup>
4141
</div>
42+
<div className="test-case" id="accordion-group-one-children">
43+
<h4>Accordion Group with one children</h4>
44+
<DxcAccordionGroup>
45+
<DxcAccordionGroup.Accordion label="Accordion1" padding="medium">
46+
<div>
47+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
48+
Suspendisse malesuada lacus ex, sit amet blandit leo lobortis
49+
eget.
50+
</div>
51+
</DxcAccordionGroup.Accordion>
52+
</DxcAccordionGroup>
53+
</div>
4254
<div className="test-case" id="light-theme-default">
4355
<h4>Accordion Group Uncontrolled with undefined ActiveIndex</h4>
4456

docs/src/pages/components/cdk-components/card/api.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ const buttonPropsTable = () => {
1212
<tr>
1313
<td>imageSrc: string</td>
1414
<td></td>
15-
<td>URL of the image that will be placed in the card component.</td>
15+
<td>
16+
URL of the image that will be placed in the card component. In case of
17+
omission, the image container will not appear and the content will
18+
occupy its space.
19+
</td>
1620
</tr>
1721
<tr>
1822
<td>imageBgColor: string</td>

docs/src/pages/components/cdk-components/card/examples/actionCard.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const code = `() => {
1111
imageSrc={iceCreamImagePath}
1212
imageCover={true}
1313
margin="small"
14+
contentPadding="xsmall"
1415
>
1516
Lorem Ipsum
1617
</DxcCard>

docs/src/pages/components/cdk-components/card/examples/defaultCard.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ import iceCreamImagePath from "./images/ice-cream.jpg";
44

55
const code = `() => {
66
return (
7-
<DxcCard imageSrc={iceCreamImagePath} imageCover={true} margin="small">
7+
<DxcCard
8+
imageSrc={iceCreamImagePath}
9+
imageCover={true}
10+
margin="small"
11+
contentPadding="xsmall"
12+
>
813
Lorem Ipsum
914
</DxcCard>
1015
);
@@ -13,7 +18,7 @@ const code = `() => {
1318
const scope = {
1419
DxcCard,
1520
iceCreamImagePath,
16-
useState
21+
useState,
1722
};
1823

1924
export default { code, scope };

docs/src/pages/components/cdk-components/card/examples/linkCard.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const code = `() => {
99
imageSrc={iceCreamImagePath}
1010
imageCover={true}
1111
margin="small"
12+
contentPadding="xsmall"
1213
>
1314
Lorem Ipsum
1415
</DxcCard>

docs/src/pages/components/cdk-components/card/examples/outlinedCard.js

Lines changed: 0 additions & 19 deletions
This file was deleted.

docs/src/pages/components/cdk-components/card/examples/themesCard.js

Lines changed: 0 additions & 27 deletions
This file was deleted.

docs/src/pages/themeBuilder/JSONView.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ const JSONViewContainer = styled.div`
2222
height: calc(100vh - 64px);
2323
padding: 5px;
2424
width: 30%;
25-
overflow-y: auto;
25+
overflow: auto;
2626
2727
/* width */
2828
::-webkit-scrollbar {
2929
width: 8px;
30+
height: 8px;
3031
}
3132
3233
/* Track */

docs/src/pages/themeBuilder/components/ComponentPreview.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,13 @@ const ComponentPreview = ({ customTheme, componentId }) => {
4747
};
4848

4949
const ComponentPreviewContainer = styled.div`
50-
overflow-y: auto;
5150
height: 70%;
51+
overflow: auto;
5252
5353
/* width */
5454
::-webkit-scrollbar {
5555
width: 8px;
56+
height: 8px;
5657
}
5758
5859
/* Track */

docs/src/pages/themeBuilder/components/ThemeInputsConfig.jsx

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ const ThemeInputsConfig = ({ componentInputs, onChangeCustomTheme }) => {
4747
.map((propertyName) => (
4848
<LogoContainer>
4949
<PropertyName>{propertyName}</PropertyName>
50-
<LogoConfig propertyName={propertyName} propertyValue={componentInputs[propertyName]} onChangeCustomTheme={onChangeCustomTheme} />
50+
<LogoConfig
51+
propertyName={propertyName}
52+
propertyValue={componentInputs[propertyName]}
53+
onChangeCustomTheme={onChangeCustomTheme}
54+
/>
5155
</LogoContainer>
5256
))}
5357
</ColorInfoColumn>
@@ -73,6 +77,31 @@ const PropertiesContent = styled.div`
7377
display: flex;
7478
justify-content: flex-start;
7579
flex-grow: 1;
80+
flex-wrap: wrap;
81+
overflow: auto;
82+
83+
/* width */
84+
::-webkit-scrollbar {
85+
width: 8px;
86+
height: 8px;
87+
}
88+
89+
/* Track */
90+
::-webkit-scrollbar-track {
91+
background: #d9d9d9;
92+
border-radius: 26px;
93+
}
94+
95+
/* Handle */
96+
::-webkit-scrollbar-thumb {
97+
background: #666666;
98+
border-radius: 26px;
99+
}
100+
101+
/* Handle on hover */
102+
::-webkit-scrollbar-thumb:hover {
103+
background: #555;
104+
}
76105
`;
77106

78107
const PropertyContainer = styled.div`

0 commit comments

Comments
 (0)