-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add missing img alt text #132
Conversation
resolves adaptlearning/adapt_framework#3200 - remove aria-label from <img> as parent aria-hidden prevents label from being read - apply graphic alt text to input aria-label instead
Co-authored-by: tomgreenfield <[email protected]>
Co-authored-by: tomgreenfield <[email protected]>
js/adapt-contrib-gmcq.js
Outdated
$.a11y_normalize(itemModel.get('text')), | ||
'. ', | ||
$.a11y_normalize(itemModel.get('_graphic').alt) |
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.
There is a new API for this:
$.a11y_normalize(itemModel.get('text')), | |
'. ', | |
$.a11y_normalize(itemModel.get('_graphic').alt) | |
Adapt.a11y.normalize(itemModel.get('text')), | |
'. ', | |
Adapt.a11y.normalize(itemModel.get('_graphic').alt) |
See also lines 91 & 93.
@oliverfoster, probably best to leave the switch to the direct a11y.normalize()
for the React PR.
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.
Nah, do it now. Here's the issue adaptlearning/adapt_framework#3009
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.
See also lines 91 & 93.
Future note: this bit wasn't done.
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.
Apologies, my mistake.
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.
👀
@kirsty-hames could you have a look at this this week if you have time please? |
Co-authored-by: tomgreenfield <[email protected]>
Co-authored-by: tomgreenfield <[email protected]>
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.
👁️
resolves adaptlearning/adapt_framework#3200
<img>
as parentaria-hidden
prevents label from being read<input>
aria-label
instead