-
Notifications
You must be signed in to change notification settings - Fork 446
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 buttons for screen readers #3268
support for disabled buttons 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)
Hi @jensvannerum, |
@jensvannerum : Is there any chance to get this PR (and the 8.x/7.x versions) updated soon, so that we might consider including them in 8.1 / 7.6.3? If not, no worries. Just noticing though that we previously ranked this |
@jensvannerum : We talked about this in the Developers Meeting today. If you can find time to get the merge conflicts solved soon, then both @atarix83 and I are willing to test & review this in the hopes we can include it in 8.1 / 7.6.3 |
…r-disabled-elements-for-screen-readers-9.0
@tdonohue I fixed all conflicts for the PR (also for the 8.x and 7.x versions) |
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.
👍 Thanks @jensvannerum ! I gave this another review and test today. The code looks good, but I found a stray console.log
we may want to remove (see below). I also verified this fixes #3249, and tested several other disabled buttons to verify this seems to be a global fix.
I also really appreciate the new lint rule to enforce this. That'll make it so much easier to ensure we don't accidentally forget to disable buttons using dsBtnDisabled
.
I think this looks ready to merge, but I'd appreciate it if we can remove the console.log
. I'll also give @atarix83 until at least the end of day on Monday to give it a final review (if he has time).
...ge/collection-source/collection-source-controls/collection-source-controls.component.spec.ts
Outdated
Show resolved
Hide resolved
b04ab03
to
920edef
Compare
Fixed last remaining issues in all versions of PR now @tdonohue, thanks for catching them (squashed commits). Should be good to go now |
Thanks @jensvannerum ! This looks good to me now! |
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.