Closed avernet closed 4 months ago
We put aria-*
attributes on a group because it makes sense when there are more than one item. Obviously, it doesn't make much sense when there is only one item.
We could detect the case where there is only one item statically, and produce different markup. Note that this is not a static itemset, because the label value can change. But we know that the number of items won't change dynamically.
If we detect a single-item full xf:select
:
On <span>
around items:
role="group"
xforms-invalid
/xforms-required
aria-describedby
Instead, on <input>
:
xforms-invalid
/xforms-required
aria-describedby
We want the input we tab to to have the
aria-*
attributes.checkbox-input.xbl
.<xf:select appearance="full">
, which puts thearia-*
attributes on a group around the checkboxes (instead, this issue calls for those attributes to be on the input itself, since we only have a single checkbox).<xf:select>
itself support a single checkbox mode?Related: https://github.com/orbeon/orbeon-forms/issues/6279.
+1 from customer