-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tree): improve screen reader support (#102)
* feat(list): improve screen reader * feat(list): add aria-multiselectable for screen reader * test(list): improve key control cases * test(tree): update snapshots for tree * feat(tree): add roles to tree and treee-item and add aria-expanded * fix: add more generic type to default role for extendibility * refactor: use setAttribute instead of overriding AOM properties * refactor: aria expanded and selected logics * feat: add aria level and setsize support * feat: remove asterick key support * feat: used aria-checked for multiple mode to indicate indeterminate state * chore: update lock file * refactor: simplify aria setting logics * feat: add generic type to treeitem defaulRole * fix: handles multiple mode changes * test(tree): update snapshots * refactor: reflect aria-selected according to selected state * refactor: move most of the aria setting logics to tree-item element * refactor: remove aria-setsize as it's no longer needed Co-authored-by: Jidapa-Pai <[email protected]> Co-authored-by: Jidapa-Pai <[email protected]>
- Loading branch information
1 parent
3a03599
commit 0d6db3b
Showing
6 changed files
with
105 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
```html | ||
<ef-tree | ||
aria-multiselectable="false" | ||
role="listbox" | ||
role="tree" | ||
> | ||
</ef-tree> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters