Test for Text Label Issues using the Firefox Accessibility Inspector

  Рет қаралды 7,392

Mozilla Developer

Mozilla Developer

Күн бұрын

Пікірлер: 5
@davidluhr
@davidluhr 5 жыл бұрын
Love all these accessibility features! Another solution for consideration: include actual text inside the button/link, and visually hide it with CSS, while still making it available for assistive technologies. Then, add `aria-hidden="true"` to the `burger-bar` elements, and `alt=""` to the Mozilla logo. This makes for a really clean user experience whether you are using assistive technologies or not.
5 жыл бұрын
In the last example, I think it is not necessary to double-label the image link (add both aria-label and alt text). It should be enough to just set “Go to home page” as the image’s alt text. The parent link will then use this text as its accessible name. (Source: knowbility.org/blog/2019/ARIA-labels/.)
@roraraptor
@roraraptor 2 жыл бұрын
This link is broken, and it's been two years, but I assume there are screen readers that aren't clever enough to realize that the alt text of the image should also be used as the text content of the anchor tag. Besides, this might not always be the case, so it could be problematic to make such assumptions. Consider for example an anchor tag containing a logo and text. The logo might be considered decoration, but it is also an important identifier for the website/company and so we might want to add a description regardless. But this alt text will be self-contained and might not be grammatically compatible with the text content. - Alt text: "The Firefox Fox and Globe Logo" - Text content: "Mozilla Firefox" - Screen reader describing the anchor: "The Firefox Fox and Globe Logo Mozilla Firefox" Explicitly defining a label for the anchor will make it easier for screen readers to deal with cases like this, and gives us more control over how our content is represented to users. (Sorry for the sudden bump two years after you commented this! Just wanted to give my two cents for those who might read this in the future. 😅)
@RaviDhimanMark
@RaviDhimanMark 5 жыл бұрын
Hi, Which Mozilla theme you are using?
@Demonist_18
@Demonist_18 7 ай бұрын
why the hell you speak so low
Understand Website Accessibility with the Firefox Accessibility Inspector
8:01
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
Coding a Web Server in 25 Lines - Computerphile
17:49
Computerphile
Рет қаралды 358 М.
Don't Use ChatGPT Until You Watch This Video
13:40
Leila Gharani
Рет қаралды 1,8 МЛН
Do This to Improve Image Loading on Your Website
11:39
Mozilla Developer
Рет қаралды 51 М.
8 AI Tools I Wish I Tried Sooner
16:10
Futurepedia
Рет қаралды 283 М.
Why are there Four Firefoxes?
15:36
Mozilla Developer
Рет қаралды 104 М.
Accessibility Fundamentals with Rob Dodson
28:16
SFHTML5
Рет қаралды 104 М.
Quickly Alter Typography with Firefox Font Editor
9:19
Mozilla Developer
Рет қаралды 10 М.
Test Keyboard Accessibility using the Firefox Accessibility Inspector
7:08
How To PLAN your Game as a Solo Developer
16:26
Heartbeast
Рет қаралды 535 М.
Inspecting the CSS Cascade using Firefox DevTools
8:03
Mozilla Developer
Рет қаралды 34 М.