-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop useless text faking a label in horizontal forms example #31904
Conversation
i'm actually wondering...as there's an invalid fieldset/legend for the radios there before it, if we could do two things:
|
randomly, i think there were other instances of borked fieldset/legend constructs somewhere that came up during automated scans ... maybe those can be tackled in a similar way? |
@patrickhlauke Indeed! FWIW, the "checkbox" one would feel very wrong to me, using But I'll try to tackle |
Only found a single occurrence flagged by pa11y-ci, in docs/overview#disabled where we used an Easy to revert a commit if I'm wrong ;) |
This will probably need a manual backport, any help is welcome :) |
* docs(forms): use a legend for fieldset instead of aria-label * docs(forms): fix incorrect legend nesting in fieldset
* docs(forms): use a legend for fieldset instead of aria-label * docs(forms): fix incorrect legend nesting in fieldset
* docs(forms): use a legend for fieldset instead of aria-label * docs(forms): fix incorrect legend nesting in fieldset
* docs(forms): use a legend for fieldset instead of aria-label * docs(forms): fix incorrect legend nesting in fieldset
Because those example are often used as sources through copy-pasting, avoid using fake labels with text in
div
s seems a best practice in our docs.We might as well turn it into a
label
but this could lead to wrong pattern usage too, since it would require two pertinent labels.Since we're only documenting horizontal layout using grid, switching this an offest use case feels better.
If you agree with that, it should be backported to v4 as well.