Open alice opened 9 years ago
Pretty annoying that <label>
only works for a few elements.
Perhaps we should file a bug on https://html.spec.whatwg.org/multipage/forms.html#category-label
However, it might need more work, since presumably there is some common attribute of labellable elements, which it might be good to expose as some kind of flag for custom elements.
If the "pin" attribute is set, or if "step" is set, then clicking on the slider or dragging the circle with the mouse doesn't set keyboard focus on the slider -- the arrow keys don't do anything unless you tab to the slider.
Basic:
<input type="range">
works: despite appearances, the slider knob never actually gets focus, it's just drawn that wayaria-valuetext
and allow the AT to speak the value however it wants (e.g. "volume 34%" is more meaningful than "volume 34")<input type="range">
and you will be able to use<label>
elements.Advanced: