Skip to content

Commit be6736f

Browse files
authored
fix(client): cursor on privacy settings (freeCodeCamp#57915)
1 parent 053b750 commit be6736f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

client/src/components/settings/toggle-radio-setting.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default function ToggleRadioSetting({
4040
{explain ? <p id={`desc${flagName}`}>{explain}</p> : null}
4141
</div>
4242
<div className='toggle-radio-group'>
43-
<label htmlFor={firstRadioId}>
43+
<label className={!flag ? 'not-checked' : ''} htmlFor={firstRadioId}>
4444
<input
4545
id={firstRadioId}
4646
type='radio'
@@ -52,7 +52,7 @@ export default function ToggleRadioSetting({
5252
<span className='custom-circle'></span>
5353
<span>{onLabel}</span>
5454
</label>
55-
<label htmlFor={secondRadioId}>
55+
<label className={flag ? 'not-checked' : ''} htmlFor={secondRadioId}>
5656
<input
5757
id={secondRadioId}
5858
type='radio'

client/src/components/settings/toggle-setting.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@
7575
margin-inline-start: 2rem;
7676
}
7777

78+
.toggle-radio-group label.not-checked {
79+
cursor: pointer;
80+
}
81+
7882
.toggle-radio-group input {
7983
position: absolute;
8084
left: -9999px;

0 commit comments

Comments
 (0)