-
Notifications
You must be signed in to change notification settings - Fork 433
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
support for disabled elements for screen readers #3268
base: main
Are you sure you want to change the base?
support for disabled elements for screen readers #3268
Conversation
…ders-7.6' into w2p-117544_support-for-disabled-elements-for-screen-readers-8.0
…ders-8.0' into w2p-117544_support-for-disabled-elements-for-screen-readers-9.0
Hi @jensvannerum, |
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.
@jensvannerum : We gave this a group review in our Developer Meeting today. Overall the feedback was positive, but I've added a few notes inline on issues found during the meeting (and just after the meeting as I scanned it again).
Also noted in the meeting is that we should add a note to our Accessibility documentation guidelines about this new dsDisabled
directive (and to avoid using disabled
). We have a page with very basic notes in both the 7.x and 8.x docs:
- 7.x docs: https://wiki.lyrasis.org/pages/viewpage.action?pageId=313851976#UserInterfaceDesignPrinciples&Accessibility-UserInterfaceAccessibilityGuidelines
- 8.x docs: https://wiki.lyrasis.org/pages/viewpage.action?pageId=315720834#UserInterfaceDesignPrinciples&Accessibility-UserInterfaceAccessibilityGuidelines
...pp/shared/form/builder/ds-dynamic-form-ui/models/disabled/dynamic-disabled.component.spec.ts
Outdated
Show resolved
Hide resolved
…for-disabled-elements-for-screen-readers-9.0
- added typedocs - changed directive to only be present for buttons - various other small fixes
@tdonohue Thanks for the feedback, I feel like I addressed all of it. Note that I also reduced the scope of this PR a little, the directive is currently only present on buttons. Backported changes to 8.x and 7.x PR's too |
fc67065
to
c249afd
Compare
… this is only for buttons currently (cherry picked from commit 2380d4e)
References
Add references/links to any related issues or PRs. These may include:
Description
Replaced the html disabled attribute with a custom directive which has the same effect.
The directive is however friendly for screen readers using aria attributes and being focusable with keyboard navigation
Instructions for Reviewers
Checklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You do not need to complete this checklist prior creating your PR (draft PRs are always welcome).
However, reviewers may request that you complete any actions in this list if you have not done so. If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
main
branch of code (unless it is a backport or is fixing an issue specific to an older branch).yarn lint
yarn check-circ-deps
)package.json
), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.