social media icons and aria-label
-
wrote on Apr 9, 2024, 2:14 PM last edited by
Hi. Is it possible to add the aria-label attribute to the social media icon?
-
do you need to make a website for people with assistive technology, like for example a website for someone who is blind?
or what do you need it for -
wrote on Apr 11, 2024, 3:35 PM last edited by kappe Apr 11, 2024, 11:51 AM
I know you know how it works :)
-
so there is no way to do that :/
but what do u need it for?
which labels would you like to see there? maybe i can just hard-code them in! -
wrote on Apr 12, 2024, 7:22 AM last edited by
Thanks, Armin. PageSpeed Insight shows a note under the accessibility point. This only affects the social media icons in the footer. And they don't have to be readable. Maybe with aria-hidden="true" (and focusable="false"?). Can the attributes be added to the svg code? The icons are in my media lib. Just a small detail, I know.
-
i can add aria-hidden="true" to the anchor tags that inherit the icon images
maybe that works. you'll need to wait for the next lay theme update release, then that will be included
-
wrote on Apr 12, 2024, 5:08 PM last edited by
bist mein held
-
wrote on Apr 13, 2024, 10:37 AM last edited by
Thanks Armin. But Pagespeed now says '[aria-hidden="true"] elements contain focusable descendents'. The svg (as a child element?) must also not-focusable with aria-hidden=true > aria-hidden-focus
-
ok the image tag will now also have aria-hidden="true" with the next update ^^
I also code custom websites or custom Lay features.
💿 Email me here: 💿
info@laytheme.com
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it