File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -12,31 +12,34 @@ type SpanChecked = {
12
12
$isChecked ?: boolean ;
13
13
} ;
14
14
15
- export const CheckboxContainerStyled = styled . div `
15
+ export const CheckboxContainerStyled = styled . div < ThemeStylesType > `
16
16
width: fit-content;
17
+ ${ props => getStyles ( props . styles ?. container ) }
17
18
` ;
18
19
19
- export const CheckboxIconLabelWrapperStyled = styled . div `
20
+ export const CheckboxIconLabelWrapperStyled = styled . div < ThemeStylesType > `
20
21
display: flex;
21
22
flex-direction: row;
22
23
align-items: flex-start;
24
+ ${ props => getStyles ( props . styles ?. iconLabelWrapper ) }
23
25
` ;
24
26
25
27
export const CheckboxStyled = styled . input < ThemeStylesType > `
26
- ${ props => getStyles ( props . styles ?. checkbox ) }
27
28
appearance: none;
28
29
cursor: pointer;
29
30
display: grid;
30
31
place-content: center;
31
32
&:disabled {
32
33
cursor: default;
33
34
}
35
+ ${ props => getStyles ( props . styles ?. checkbox ) }
34
36
` ;
35
37
36
- export const CheckboxFrameStyled = styled . div `
38
+ export const CheckboxFrameStyled = styled . div < ThemeStylesType > `
37
39
position: relative;
38
40
height: fit-content;
39
41
width: fit-content;
42
+ ${ props => getStyles ( props . styles ?. frameContainer ) }
40
43
` ;
41
44
42
45
export const CheckedIcon = styled . span < ThemeStylesType & SpanChecked > `
Original file line number Diff line number Diff line change @@ -122,9 +122,9 @@ const CheckboxStandAloneComponent = (
122
122
} ;
123
123
124
124
return (
125
- < CheckboxContainerStyled >
126
- < CheckboxIconLabelWrapperStyled >
127
- < CheckboxFrameStyled >
125
+ < CheckboxContainerStyled styles = { styles } >
126
+ < CheckboxIconLabelWrapperStyled styles = { styles } >
127
+ < CheckboxFrameStyled styles = { styles } >
128
128
< CheckboxStyled
129
129
ref = { ref }
130
130
aria-describedby = { buildAriaDescribedBy ( {
Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ export type CheckboxPropsStylesType = {
19
19
errorWrapper ?: CommonStyleType ;
20
20
errorIcon ?: IconTypes ;
21
21
textError ?: TypographyTypes ;
22
+ container ?: CommonStyleType ;
23
+ iconLabelWrapper ?: CommonStyleType ;
24
+ frameContainer ?: CommonStyleType ;
22
25
} ;
23
26
24
27
export type CheckboxPropsStateStylesType = {
You can’t perform that action at this time.
0 commit comments