fix(a11y): add title tags to SVG components in run-a-node page#14923
Conversation
✅ Deploy Preview for ethereumorg canceled.
|
|
This issue is stale because it has been open 30 days with no activity. |
Co-Authored-By: VolodymyrBg <aqdrgg19@gmail.com>
wackerow
left a comment
There was a problem hiding this comment.
Hey @VolodymyrBg, apologies for the delays here. Appreciate your help on this.
Took a closer look, and since this PR we've actually updated the way these SVG elements are imported which affects the ability to pass child elements to the imported .svg components.
That being said, these are also decorative elements, so ultimately we don't really need screen-reader labelling for these. A more appropriate approach here is to simply apply aria-hidden="true" (or simply aria-hidden for short, which implies a default true value), and make sure they aren't focusable.
Pulling this in!
(Small aside, applied a quick fix as well to the grid layout of the ExpandableCard components which appeared to have been broken—while I was in here)
|
@all-contributors please add @VolodymyrBg for bug patch |
|
I've put up a pull request to add @VolodymyrBg! 🎉 |
Add title tags to SVG components for accessibility
Description
Added
<title>tags to SVG components in the run-a-node page to improve accessibility for screen readers. This change makes the page more accessible for users with disabilities by providing proper descriptions for SVG icons.Changes made:
Related Issue
Addresses TODO comments in
src/pages/run-a-node.tsxregarding SVG accessibility:// TODO: make a11y svgs (using <title>)