Template:2012FR/Form-section/Radiobuttons/Default: Difference between revisions
Content deleted Content added
rm unneeded div |
add tabindex="-1" to errors so they can be focused by js and announced by screenreaders |
||
(3 intermediate revisions by the same user not shown) | |||
Line 5:
</div>
<fieldset class="frequency-options">
<legend class="sr-only">
How often would you like to donate?
<ul>
<li>
Line 17 ⟶ 20:
</fieldset>
<fieldset class="amount-options">
<legend class="sr-only">
</html>{{int:donate_interface-amount-legend}} ({{{currency|{{CurrencyCode|{{{country}}}}}}}})<html>
<ul>
<li class="radiobuttons-cell input_amount_0">
Line 34 ⟶ 40:
<label class="frb-btn" for="input_amount_3"></html>{{CurrencyFormat|{{{donate-amount-3}}}|{{{currency}}}|{{{country}}}|{{{language}}}}}<html></label>
</li>
▲ </ul>
▲ <ul>
<li class="radiobuttons-cell input_amount_4">
<input type="radio" name="amount" id="input_amount_4" onclick="selectAmount();" value="</html>{{{donate-amount-4}}}<html>" />
Line 56 ⟶ 60:
</li>
</ul>
<!-- tabindex="-1" allows focus with js so errors can be announced -->
<div style="display: none;" class="lp-error lp-error-smallamount"></html>{{int:Donate_interface-smallamount-error}}<html></div>▼
<div style="display: none;" tabindex="-1" class="lp-error lp-error-
</html>{{int:Donate_interface- </div> ▲ <div style="display: none;" tabindex="-1" class="lp-error lp-error-
</html>{{int:Donate_interface-bigamount-error}}<html>
</div>
</fieldset>
</html>
|