File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
packages/design-system/src/components/Checkbox Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @strapi/design-system ' : patch
3
+ ---
4
+
5
+ fix: disabled checked checkboxes border
Original file line number Diff line number Diff line change @@ -123,12 +123,13 @@ export const Indeterminate = {
123
123
export const Disabled = {
124
124
args : {
125
125
disabled : true ,
126
+ checked : true ,
126
127
} ,
127
128
name : 'Disabled' ,
128
129
parameters : {
129
130
docs : {
130
131
source : {
131
- code : '<Checkbox disabled>Remember me</Checkbox>' ,
132
+ code : '<Checkbox disabled checked >Remember me</Checkbox>' ,
132
133
} ,
133
134
} ,
134
135
} ,
Original file line number Diff line number Diff line change @@ -75,8 +75,8 @@ const CheckboxRoot = styled(Checkbox.Root)`
75
75
// this ensures the checkbox is always a square even in flex-containers.
76
76
flex: 0 0 2rem;
77
77
78
- &[data-state='checked'],
79
- &[data-state='indeterminate'] {
78
+ &[data-state='checked']:not([data-disabled]) ,
79
+ &[data-state='indeterminate']:not([data-disabled]) {
80
80
border: 1px solid ${ ( props ) => props . theme . colors . primary600 } ;
81
81
background-color: ${ ( props ) => props . theme . colors . primary600 } ;
82
82
}
You can’t perform that action at this time.
0 commit comments