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:
russell@unturf.com 2026-02-09 10:52:45 -05:00
parent 50bfb13309
commit 740001f09b

View file

@ -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" />