-
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
Accessibility Issue: keyboard-only users cannot interact with "show more" #3073
Comments
The template for the expand and collapse buttons binds to the According to the code comments, this directive is for preventing drag events being misinterpret as clicks. Manually testing the page (on 7.6.x) without this directive and binding to the Keyboard navigation for buttons will trigger the It's simple to fix the problem, I just don't know if there are good reasons to keep the The current code is: <button class="btn btn-link p-0 expandButton" dsDragClick (actualClick)="toggle()">
... The options are:
|
@autavares-dev : Thanks for the analysis. I have to admit, I don't know this area of the code well, but I'm all in favor of simplification. If replacing the custom So, I don't have a strong preference, but we'd need to carefully test that switching to If you'd like to claim this ticket and provide a PR, please let me know! |
I would like to claim the task. It seems safer to me to use the first alternative, by including the space and enter keys. It would be difficult to be sure that no unwanted side effects were added by manually testing/clicking the button occurrences. |
Thanks @autavares-dev ! I've assigned the task to you. Please feel free to send along a PR whenever you are able to complete the task. See our contributing guidelines for more details as needed. |
Describe the bug
Keyboard-only users cannot expand text that is hidden and needs to be expanded for full view. This issue applies to all instances where the "show more" functionality is used.
To Reproduce

Steps to reproduce the behavior:
Reproducible both in demo & sandbox. See image.
Expected behavior
A keyboard-only user should be able to expand the text without needing a mouse to click on the text.
The text was updated successfully, but these errors were encountered: