mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-09 06:04:17 -05:00
fix(client): cursor on privacy settings (#57915)
This commit is contained in:
@@ -40,7 +40,7 @@ export default function ToggleRadioSetting({
|
||||
{explain ? <p id={`desc${flagName}`}>{explain}</p> : null}
|
||||
</div>
|
||||
<div className='toggle-radio-group'>
|
||||
<label htmlFor={firstRadioId}>
|
||||
<label className={!flag ? 'not-checked' : ''} htmlFor={firstRadioId}>
|
||||
<input
|
||||
id={firstRadioId}
|
||||
type='radio'
|
||||
@@ -52,7 +52,7 @@ export default function ToggleRadioSetting({
|
||||
<span className='custom-circle'></span>
|
||||
<span>{onLabel}</span>
|
||||
</label>
|
||||
<label htmlFor={secondRadioId}>
|
||||
<label className={flag ? 'not-checked' : ''} htmlFor={secondRadioId}>
|
||||
<input
|
||||
id={secondRadioId}
|
||||
type='radio'
|
||||
|
||||
@@ -75,6 +75,10 @@
|
||||
margin-inline-start: 2rem;
|
||||
}
|
||||
|
||||
.toggle-radio-group label.not-checked {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.toggle-radio-group input {
|
||||
position: absolute;
|
||||
left: -9999px;
|
||||
|
||||
Reference in New Issue
Block a user