-
Notifications
You must be signed in to change notification settings - Fork 471
♿️Improve keyboard accessibility for the document tree #1681
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
base: main
Are you sure you want to change the base?
Conversation
c49c1f7 to
f72df6c
Compare
|
Size Change: +687 B (+0.02%) Total Size: 4.11 MB
|
5f35f48 to
2914ea9
Compare
2480747 to
86d98f0
Compare
| opacity: 1; | ||
| } | ||
| } | ||
| /* Retirer le focus visuel du root item quand le focus est sur les actions */ |
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.
| /* Retirer le focus visuel du root item quand le focus est sur les actions */ | |
| /* Remove visual focus from the root item when focus is on the actions */ |
| display: flex; | ||
| } | ||
| } | ||
| /* Retirer le focus visuel du tree item quand le focus est sur les actions */ |
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.
Comments should be in english.
| onOpenChange={onOpenChange} | ||
| > | ||
| <Icon | ||
| <Box |
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.
What about BoxButton ?
| document.addEventListener('keydown', toActions, true); | ||
| return () => document.removeEventListener('keydown', toActions, true); | ||
| // node is a dependency, as it's checked for focus state | ||
| }, [node]); |
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.
| }, [node]); | |
| }, [node?.isFocused]); |
| if (e.key !== 'F2' || document.querySelector(SELECTORS.MODAL)) { | ||
| return; | ||
| } | ||
|
|
||
| // Only react if the node is currently focused | ||
| if (!node?.isFocused) { | ||
| return; | ||
| } | ||
|
|
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.
I am not fond of coupling with dom-selectors. If a modal is opened I suppose the node would not be focused anymore, so is it not enough that ?
| if (e.key !== 'F2' || document.querySelector(SELECTORS.MODAL)) { | |
| return; | |
| } | |
| // Only react if the node is currently focused | |
| if (!node?.isFocused) { | |
| return; | |
| } | |
| if (e.key !== 'F2' || !node?.isFocused) { | |
| return; | |
| } |
9504a1c to
fa7d602
Compare
adds f2 shortcut to open options menu in sub-documents Signed-off-by: Cyril <[email protected]>
b177dfa to
7d22f33
Compare
…treeview struct Signed-off-by: Cyril <[email protected]>
improves screen reader support with contextual accessibility guidance Signed-off-by: Cyril <[email protected]>
…e treeview struct
7d22f33 to
cf8e1d5
Compare
…de the treeview struct
Purpose
Improve keyboard accessibility for the document tree by implementing F2 navigation to access action buttons (three dots menu and add child button) for both root items and sub-pages.
issues : 1160
Enregistrement.de.l.ecran.2025-12-02.131853.mp4
Proposal
Keyboard Navigation
Changes
Accessibility