Closed demtario closed 2 years ago
We are waiting for this feature to be implemented. It doesn’t have to be too hard.
Thanks.
Fixed in v1.4.12
Status: Not fixed fully :crying_cat_face:
Accessibility checkers still show errors for img#hg-pic
.
Yes, hes-gallery dynamically adds alt text when the user starts interacting with the images, but if he doesn’t do that, alt="Something"
should also be contained for the <img>
stub.
I tested hes-gallery demo page.
WAVE — browser extension for checking accessibility:
Pa11y — CLI accessibility checker:
D:\SashaDebugging>pa11y https://demtario.github.io/hes-gallery/demo/
Welcome to Pa11y
> Running Pa11y on URL https://demtario.github.io/hes-gallery/demo/
Results for URL: https://demtario.github.io/hes-gallery/demo/
• Error: The html element should have a lang or xml:lang attribute which describes the language of the document.
├── WCAG2AA.Principle3.Guideline3_1.3_1_1.H57.2
├── html
└── <html><head> <title>HesGallery</t…</html>
• Error: Img element missing an alt attribute. Use the alt attribute to specify a short text alternative.
├── WCAG2AA.Principle1.Guideline1_1.1_1_1.H37
├── #hg-pic
└── <img id="hg-pic">
2 Errors
Thanks.
Conclusions from https://github.com/demtario/hes-gallery/pull/11
1. Summary
There are some errors on demo page reported by WAVE — web accessibility evaluation tool.
Report.
2. Behavior
3. Fix
3.1. Alternative text
Some default alt text should to
img#hg-pic
.Missing alternative text:
3.2. Buttons
Empty button
This can be solved by moving icon from CSS directly into button (in html structure), and by adding
aria-label
andtitle
tag with "Next" or "Previous" text in them [source].So to summarize, this:
should be changed into: