-
Notifications
You must be signed in to change notification settings - Fork 16
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
feat(FileListItem): accessibility improvements for FileListItem #1474
Conversation
🚀 Deployed on https://pr-1474--dhis2-ui.netlify.app |
event.key === 'Backspace' || | ||
event.key === 'Delete' | ||
) { | ||
onRemove({}, event) |
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.
Do we want to call event.stopPropagation
here?
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.
tested and working well - just address @Birkbjo comment please, it's generally safer to do event.stopPropagation
for these special handlers, but let us know if that's not the case here.
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.
Works as expected! Can focus the "remove" action and trigger it with "Enter" and "Delete" keys.
Passing run #3405 ↗︎
Details:
Review all test suite changes for PR #1474 ↗︎ |
# [9.5.0](v9.4.9...v9.5.0) (2024-05-29) ### Features * **FileListItem:** accessibility improvements for FileListItem ([#1474](#1474)) ([b5d5e2d](b5d5e2d))
Implements LIBS-562
Description
Remove action in list of attached files is focusable and triggerable with
enter
&delete
keys.Checklist