-
Notifications
You must be signed in to change notification settings - Fork 642
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
A11y/use fieldsets for prefs #11534
A11y/use fieldsets for prefs #11534
Conversation
DEV-333 Accessibility and Development headings should use fieldset/legend
Because controls are visually grouped, they should be a part of a fieldset element. For each group of checkboxes, the heading/label should use a legend element, and the wrapping element should use a fieldset element Resolves CMS-047 |
@@ -4,6 +4,7 @@ | |||
|
|||
{% set fieldsetAttributes = { | |||
class: ['checkbox-group'], | |||
role: 'presentation', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@brandonkelly I added this for both the checkboxGroup
and the radioGroup
as I wasn't sure if changing the fieldset
element to a div
would be problematic; if not let me know and I can modify the tag itself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably safe to just change the tag.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do!
# Conflicts: # src/templates/users/_edit.twig
@gcamacho079 Just merged |
…Group, add extra heading to preferences tab for consistency between sections
@brandonkelly just tested and made the following changes:
|
Description
Use fieldsets for accessibility and dev preferences (Resolves DEV-333).
Also fixes an issue where
fieldset
elements are nested insidefieldset
elements for both radio groups and checkbox groups.Related issues