-
Notifications
You must be signed in to change notification settings - Fork 5
Add Accessibility #114
base: master
Are you sure you want to change the base?
Add Accessibility #114
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -193,6 +193,20 @@ This codebase follows [single-direction margin declarations](https://csswizardry | |
|
|
||
| Margins are generally preferred to padding for whitespace (due to [margin collapsing](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Box_Model/Mastering_margin_collapsing)), but the latter can be used when relevant. | ||
|
|
||
| Accessibility | ||
| ------------ | ||
|
|
||
| ### Screen Reader Observations | ||
|
|
||
| #### Voiceover (Mac)** | ||
|
|
||
| Download Link Icon | ||
|
||
|
|
||
| We have noticed that Voiceover does not read aria-labels in anchor tags `<a href="" arial-label="Voiceover"></a>` in Safari when you load or reload the page. The only time it seems to read it out is if you tab to another piece of software or browser and then tab back to Safari. | ||
|
|
||
| To overcome this we have removed the aria-label from the anchor tag and put the label description into the image alt tag instead. This means the description gets read out consistently. | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The overall structure above is good: the first paragraph states the problem, the second paragraph describes a solution. First paragraph: the code example could be slightly tightened up, something like Second paragraph: rather than saying what we've done in a specific case, better to phrase in terms of how to address the problem for the general case.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think at this point we will need to add visuallyhidden so we can add a span for links that do not have an image. What do you think?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think keep it focused, so para 2 could be something like: "When the link contains an image but no text (and so a description is essential), one work around is removing the anchor element's |
||
|
|
||
| Getting help | ||
| ------------ | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe orientate this around the code rather than a particular reader, so this heading could be "
aria-labelon<a>elements"There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This only applies to Safari with Voiceover so having the header defines it as an issue with this rather than someone scanning and thinking the problem is on all screen readers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's more about framing it in terms of what elements cause a problem.