-
Notifications
You must be signed in to change notification settings - Fork 437
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
Fix thumbnail a11y issues #1219
Fix thumbnail a11y issues #1219
Conversation
This pull request introduces 3 alerts when merging 4b238e1 into f85a5e6 - view on LGTM.com new alerts:
|
It turns out that bug was already reported as #1046. I added it to the "References" section of the description |
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.
👍 Looks good @ybnd ! I've tested this using Deque's Axe browser tool, and it does resolve the previously reported accessibility issues. Ran the same tests across entities and Items, with and without thumbnails, and it all looks good.
The only thing I came across is unrelated to this UI PR (thumbnail size is too small by default), so I fixed it in a backend PR here: DSpace/DSpace#3297
As discussed in today's meeting, merging this with one approval. Thanks again @ybnd ! |
References
Description
Added alt text to thumbnails and replaced the placeholder image with an HTML placeholder with improved contrast.
Grid element thumbnails are now handled by
ds-thumbnail
as well.While working on this, we found a bug where thumbnails would not load in on a direct URL request of e.g. an Item page.
An additional issue came up with
ds-metadata-field-wrapper
hiding images in some cases.Both of these were fixed.
Instructions for Reviewers
Look up some Items with/without thumbnails and check whether
List of changes in this PR:
alt
input tods-thumbnail
to specify alt text (i18n key, defaults to "Thumbnail Image")placeholder
input (i18n key, defaults to "No thumbnail avalable")ds-grid-thumbnail
withds-thumbnail
ds-metadata-field-wrapper
logic: doesn't show images by default anymoreChecklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You need not complete this checklist prior to creating your PR (draft PRs are always welcome). If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
yarn run lint
package.json
), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.