Skip to content

Commit 845b7dc

Browse files
committed
Fix checkbox css
1 parent d9e035c commit 845b7dc

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

src/js/components/ui/checkbox.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ const Icon = styled.svg`
2020
// Source: https://polished.js.org/docs/#hidevisually
2121
const HiddenCheckbox = styled.input.attrs({ type: 'checkbox' })`
2222
border: 0;
23-
clip: rect(0 0 0 0);
24-
clippath: inset(50%);
23+
clip-path: inset(50%);
2524
height: 1px;
2625
margin: -1px;
2726
overflow: hidden;
@@ -37,7 +36,7 @@ const StyledCheckbox = styled.div`
3736
height: 24px;
3837
background: ${props =>
3938
// @ts-ignore
40-
props.isChecked ? props.theme.primaryDark : props.theme.primary}
39+
props.isChecked ? props.theme.primaryDark : props.theme.primary};
4140
border-radius: 3px;
4241
transition: all 150ms;
4342
@@ -47,7 +46,7 @@ const StyledCheckbox = styled.div`
4746
4847
${Icon} {
4948
// @ts-ignore
50-
visibility: ${props => (props.isChecked ? 'visible' : 'hidden')}
49+
visibility: ${props => (props.isChecked ? 'visible' : 'hidden')};
5150
}
5251
`;
5352

src/js/routes/__snapshots__/settings.test.tsx.snap

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ exports[`routes/settings.tsx should render itself & its children 1`] = `
3232
>
3333
<input
3434
checked={false}
35-
className="sc-AykKF JLUcA"
35+
className="sc-AykKF eBGpvv"
3636
label="Show only participating"
3737
name="showOnlyParticipating"
3838
onChange={[Function]}
3939
type="checkbox"
4040
/>
4141
<div
42-
className="sc-AykKG eKMIud"
42+
className="sc-AykKG kivYff"
4343
>
4444
<svg
4545
className="sc-AykKE iYrbLa"
@@ -86,14 +86,14 @@ exports[`routes/settings.tsx should render itself & its children 1`] = `
8686
>
8787
<input
8888
checked={true}
89-
className="sc-AykKF JLUcA"
89+
className="sc-AykKF eBGpvv"
9090
label="Play sound"
9191
name="playSound"
9292
onChange={[Function]}
9393
type="checkbox"
9494
/>
9595
<div
96-
className="sc-AykKG fcMxQD"
96+
className="sc-AykKG bvKQsJ"
9797
>
9898
<svg
9999
className="sc-AykKE iYrbLa"
@@ -140,14 +140,14 @@ exports[`routes/settings.tsx should render itself & its children 1`] = `
140140
>
141141
<input
142142
checked={true}
143-
className="sc-AykKF JLUcA"
143+
className="sc-AykKF eBGpvv"
144144
label="Show notifications"
145145
name="showNotifications"
146146
onChange={[Function]}
147147
type="checkbox"
148148
/>
149149
<div
150-
className="sc-AykKG fcMxQD"
150+
className="sc-AykKG bvKQsJ"
151151
>
152152
<svg
153153
className="sc-AykKE iYrbLa"
@@ -194,14 +194,14 @@ exports[`routes/settings.tsx should render itself & its children 1`] = `
194194
>
195195
<input
196196
checked={false}
197-
className="sc-AykKF JLUcA"
197+
className="sc-AykKF eBGpvv"
198198
label="On Click, Mark as Read"
199199
name="onClickMarkAsRead"
200200
onChange={[Function]}
201201
type="checkbox"
202202
/>
203203
<div
204-
className="sc-AykKG eKMIud"
204+
className="sc-AykKG kivYff"
205205
>
206206
<svg
207207
className="sc-AykKE iYrbLa"
@@ -248,14 +248,14 @@ exports[`routes/settings.tsx should render itself & its children 1`] = `
248248
>
249249
<input
250250
checked={false}
251-
className="sc-AykKF JLUcA"
251+
className="sc-AykKF eBGpvv"
252252
label="Open at startup"
253253
name="openAtStartUp"
254254
onChange={[Function]}
255255
type="checkbox"
256256
/>
257257
<div
258-
className="sc-AykKG eKMIud"
258+
className="sc-AykKG kivYff"
259259
>
260260
<svg
261261
className="sc-AykKE iYrbLa"

0 commit comments

Comments
 (0)