Select: remove readOnly? #2405
Labels
♿️ accessibility
Issues related to accessibility
🕵️ investigate
Needs investigation
react
@digdir/designsystemet-react
Bringing this up again, native HTML
<select>
has noreadOnly
state, because you can't interact with it anyway. In HTML, only<input readonly>
is possible if wanting to display some data in a form-field design.NativeSelect
missing kb focus #1659, but I would like to point out that creating a "fake" readOnly requires a lot of unnecessary Javascript (which makes it harder to create a solution when we go framework independent).aria-disabled
though this is a a bit weird too)readonly
in other componentsreadOnly
functionality on Select, and rather document that you can useInput
with value and readonly to displayreadOnly
data<Select readOnly>
as a<input readOnly>
under the hood, though this will not be possible for HTML/CSS-only version of the Designsystem.The text was updated successfully, but these errors were encountered: