-
Notifications
You must be signed in to change notification settings - Fork 4.8k
SVG icons: restore attributes required for accessibility #9269
Copy link
Copy link
Closed
Labels
[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).Changes that impact accessibility and need corresponding review (e.g. markup changes).[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended[Type] RegressionRelated to a regression in the latest releaseRelated to a regression in the latest release
Metadata
Metadata
Assignees
Labels
[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).Changes that impact accessibility and need corresponding review (e.g. markup changes).[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended[Type] RegressionRelated to a regression in the latest releaseRelated to a regression in the latest release
Type
Fields
Give feedbackNo fields configured for issues without a type.
#8916 changed many SVG icons, hardcoding them instead of using the
Dashiconcomponent. Thus, all the new icons now miss a few HTML attributes that are required for accessibility:role="img" aria-hidden="true"to ensure they're hidden from assistive technologiesfocusable="false"to work around an IE 11 bug where all the SVG icons within focusable elements are considered by IE focusable themselves, so there's the need to press the Tab key twice when navigating using the keyboardI'm not sure what are the plans for all these hardcoded SVG icons. For sure, using the
Dashiconcomponent was ideal to standardize all the default props and rendered HTML attributes. If these new icons are going to stay hardcoded across the codebase (which I see less ideal), then there's the need to add to all of them the missing attributes.