You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am doing consultancy for a site that runs on Altis. I need to be logged in to test the site for accessibility issues.
And every time I run into this issue in the Altis toolbar with Axe DevTools that keeps bugging me:
The issue: <img src="https://xxx-dev.altis.cloud/vendor/altis/cms/assets/logo-white.svg">
has no alt attribute, which is an HTML syntax error and also an accessibility error.
If an image has no alt attribute, the screen reader will announce the filename. In this case, the screen reader will announce:
"link logo-white dev". Pretty useless :-)
If you want no alt text, add the alt attribute, but leave the value empty (alt=""), that way the image is omitted by screen readers (removed from the accessibility tree).
Give the img an alt attribute alt="Altis WordPress Admin", then the link to /wp-admin/ has a proper accessible name.
"Altis WordPress Admin dev". Describing what is visually shown and where the link leads to.
Bonus points:
<abbr> is not an allowed element inside a link, see MDN on links
tabindex="0" is redundant, as links already get keyboard focus by nature.
Steps to reproduce:
Go to the frontend of a site running on Altis, log in and watch the admin bar at the frontend.
rianrietveld
changed the title
Image in the link to wp-admin in the Atris admin bar has no alt attribute, which triggers an HTML/A11y error
Image in the link to wp-admin in the Altis admin bar has no alt attribute, which triggers an HTML/A11y error
Aug 16, 2022
Hey humans. it's me, the accessibility police :-)
I am doing consultancy for a site that runs on Altis. I need to be logged in to test the site for accessibility issues.
And every time I run into this issue in the Altis toolbar with Axe DevTools that keeps bugging me:
Current code:
The issue:
<img src="https://xxx-dev.altis.cloud/vendor/altis/cms/assets/logo-white.svg">
has no alt attribute, which is an HTML syntax error and also an accessibility error.
If an image has no alt attribute, the screen reader will announce the filename. In this case, the screen reader will announce:
"link logo-white dev". Pretty useless :-)
If you want no alt text, add the alt attribute, but leave the value empty (alt=""), that way the image is omitted by screen readers (removed from the accessibility tree).
A quick fix is
Give the img an alt attribute alt="Altis WordPress Admin", then the link to /wp-admin/ has a proper accessible name.
"Altis WordPress Admin dev". Describing what is visually shown and where the link leads to.
Bonus points:
<abbr>
is not an allowed element inside a link, see MDN on linkstabindex="0"
is redundant, as links already get keyboard focus by nature.Steps to reproduce:
Acceptance criteria:
The text was updated successfully, but these errors were encountered: