Freedom for Your Code
Eric Eggert works with Knowbility and the W3C on improving the Web for People with Disabilities, and everyone else.
“Designing inclusive software results in improved usability and customer satisfaction.”
— Microsoft’s app developer guide
– James Craig
2014: First Commit
2015: Additional Code
…
No Changes
…
2019: The Web Notices
– James Craig
dowebsitesneedtolookexactlythesameineverybrowser.com
JAWS has the best support for announcing native figures and their captions, though support is not perfect or consistent depending on the browser and JAWS’s verbosity settings.
IE11 requires the use of role="figure" and an aria-label or aria-labelledby pointing to the figcaption to mimic native announcements.
Edge won’t announce the presence of a figure role at all, regardless if ARIA is used or not.
🤦🏻♂️
Chrome and Firefox offer similar support, however JAWS (with default verbosity settings) + Chrome will completely ignore a figure (including the content of its figcaption) if an image has an empty alt or is lacking an alt attribute.
Testing NVDA version 2018.4.1 with IE11, Edge, Firefox 64.0.2 and Chrome 71, there was no trace of figures.
<figure role="figure" aria-label="Caption for the figure.">
<!-- figure content. if an image, provide alt text -->
<figcaption>
Caption for the figure.
</figcaption>
</figure>
<!--
aria-label for macOS VoiceOver + Chrome
role="figure" for IE11.
IE11 needs an accessible name (provided by aria-label).
If not for the fact VO + Chrome doesn't support an
accessible name from aria-labelledby, that attribute
would have been preferred / pointed to an ID on
the <figcaption>.
-->
Source: http://simplyaccessible.com/article/dragon-aria/ (2014)
Greatly!
Type of Disability
Proficiency
Accessibility Support
Your Users are Everywhere here.
@media (prefers-reduced-motion: reduce) {
* {
transition: none !important;
animation: none !important;
}
}
@media (prefers-reduced-motion: reduce) {
* {
transition: none !important;
animation: none !important;
}
}
:root {
--color: #333;
--bgcolor: #eee;
}
@media (prefers-color-scheme: dark) {
:root {
--color: #eee;
--bgcolor: #333;
}
}
html {
color: var(--color);
background-color: var(--bgcolor);
}
:root {
--color: #333;
--bgcolor: #eee;
}
@media (prefers-color-scheme: dark) {
:root {
--color: #eee;
--bgcolor: #333;
}
}
html {
color: var(--color);
background-color: var(--bgcolor);
}
:root {
--color: #333;
--bgcolor: #eee;
}
@media (prefers-color-scheme: dark) {
:root {
--color: #eee;
--bgcolor: #333;
}
}
html {
color: var(--color);
background-color: var(--bgcolor);
}
Follow me:
@yatil everywhere!