Fix radio highlight not updating on subscribe page, default to None
Replace display:none on radio inputs with visually-hidden technique (position:absolute, opacity:0) so :checked pseudo-class updates reliably when clicking labels. Default frequency changed to None.
This commit is contained in:
parent
50bfb13309
commit
740001f09b
1 changed files with 7 additions and 3 deletions
|
|
@ -15,7 +15,11 @@
|
|||
cursor: pointer;
|
||||
}
|
||||
.subscribe-form input[type="radio"] {
|
||||
display: none;
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
width: 0;
|
||||
height: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
.subscribe-form input[type="radio"]:checked + label.freq-option {
|
||||
border-color: var(--blue-color, #5871ad);
|
||||
|
|
@ -108,13 +112,13 @@
|
|||
<label><b>Digest Frequency</b></label>
|
||||
<br /><br />
|
||||
|
||||
<input type="radio" name="frequency" value="-1" id="freq-none" />
|
||||
<input type="radio" name="frequency" value="-1" id="freq-none" checked />
|
||||
<label for="freq-none" class="freq-option freq-none">None</label>
|
||||
|
||||
<input type="radio" name="frequency" value="2" id="freq-immediate" />
|
||||
<label for="freq-immediate" class="freq-option">Immediate</label>
|
||||
|
||||
<input type="radio" name="frequency" value="0" id="freq-daily" checked />
|
||||
<input type="radio" name="frequency" value="0" id="freq-daily" />
|
||||
<label for="freq-daily" class="freq-option">Daily</label>
|
||||
|
||||
<input type="radio" name="frequency" value="1" id="freq-weekly" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue