Skip to content
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

Merged
merged 5 commits into from
Aug 23, 2021
Merged

add missing img alt text #132

merged 5 commits into from
Aug 23, 2021

Conversation

kirsty-hames
Copy link
Contributor

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

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
kirsty-hames and others added 2 commits July 28, 2021 15:54
Comment on lines 70 to 72
$.a11y_normalize(itemModel.get('text')),
'. ',
$.a11y_normalize(itemModel.get('_graphic').alt)
Copy link
Contributor

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:

Suggested change
$.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.

Copy link
Member

@oliverfoster oliverfoster Jul 29, 2021

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

Copy link
Contributor

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies, my mistake.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀

@oliverfoster
Copy link
Member

@kirsty-hames could you have a look at this this week if you have time please?

kirsty-hames and others added 2 commits August 11, 2021 12:33
Co-authored-by: tomgreenfield <[email protected]>
Copy link
Contributor

@tomgreenfield tomgreenfield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👁️

@oliverfoster oliverfoster merged commit d3d3100 into master Aug 23, 2021
@oliverfoster oliverfoster deleted the issue/3200 branch August 23, 2021 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fw4 adapt-contrib-gmcq: 'aria-hidden="true"' prevents image alt text from being read out
4 participants