File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -122,12 +122,12 @@ const StyledHiddenCheckbox = styled.input`
122
122
clip: rect(0 0 0 0);
123
123
clippath: inset(50%);
124
124
height: 1px;
125
+ width: 1px;
125
126
margin: -1px;
126
127
overflow: hidden;
127
128
padding: 0;
128
129
position: absolute;
129
130
white-space: nowrap;
130
- width: 1px;
131
131
` ;
132
132
133
133
const StyledCheckbox = styled . div `
@@ -138,6 +138,12 @@ const StyledCheckbox = styled.div`
138
138
height: 1em;
139
139
` ;
140
140
141
+ const StyledText = styled . span `
142
+ cursor: pointer;
143
+ flex-basis: 0;
144
+ flex-grow: 1;
145
+ ` ;
146
+
141
147
interface ICheckBoxProps extends IComponentProps < ICheckboxTheme > {
142
148
text : string ;
143
149
isChecked : boolean ;
@@ -178,7 +184,7 @@ export function Checkbox({
178
184
) }
179
185
</ StyledCheckbox >
180
186
< Spacing variant = { props . gutter || PaddingSize . Default } />
181
- { props . text }
187
+ < StyledText > { props . text } </ StyledText >
182
188
</ StyledContainer >
183
189
) ;
184
190
}
You can’t perform that action at this time.
0 commit comments