-
-
Notifications
You must be signed in to change notification settings - Fork 602
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Leaf nodes must use aria-expanded=false. The logic was there but needed to be moved, because Fancytree treats leaf nodes as expanded in the data model * Correction: leaf nodes are sometimes marked as expanded in the data model, sometimes not. So let's make the logic robust and first child whether something is a leaf node. If so, remove aria-expanded. Once we know it's not a leaf node, we can use hasChildren as that is reliable. * Set aria-expanded=false for lazy nodes since they likely have children * Use <li> for ARIA instead of first child of it * Use hasChildren === false, do some cleanup of old code * Some cleanup
- Loading branch information
1 parent
1a6c664
commit 76b8a21
Showing
2 changed files
with
12 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