Commit 670afe7 1 parent 06e9420 commit 670afe7 Copy full SHA for 670afe7
File tree 1 file changed +7
-2
lines changed
src/components/inputs/checkbox-input
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,11 @@ const sequentialId = createSequentialId('checkbox-input-');
17
17
const Label = styled . label `
18
18
display : flex;
19
19
align-items : center;
20
- cursor : ${ props => ( props . isDisabled ? 'not-allowed' : 'pointer' ) } ;
20
+ cursor : ${ props => ( props . disabled ? 'not-allowed' : 'pointer' ) } ;
21
21
position : relative;
22
22
${ props =>
23
23
! props . hasError &&
24
+ ! props . disabled &&
24
25
` &:hover svg [id$='borderAndContent'] > [id$='border'] {
25
26
stroke: ${ vars . borderColorForInputWhenFocused } ;
26
27
}` }
@@ -64,7 +65,11 @@ class CheckboxInput extends React.PureComponent {
64
65
65
66
render ( ) {
66
67
return (
67
- < Label htmlFor = { this . state . id } hasError = { this . props . hasError } >
68
+ < Label
69
+ htmlFor = { this . state . id }
70
+ hasError = { this . props . hasError }
71
+ disabled = { this . props . isDisabled }
72
+ >
68
73
< Checkbox
69
74
type = "checkbox"
70
75
id = { this . state . id }
You can’t perform that action at this time.
0 commit comments