Replace FileTree
with accessible third party treeview component
#326
Labels
FileTree
with accessible third party treeview component
#326
Is your feature request related to a problem?
Currently the
FileTree
component is a custom component that renders just buttons. There are no lists, list items or appropriate element roles used. Files and folders are just buttons after buttons. Keyboard usage is not implemented. Element states are not properly indicated.tutorialkit/packages/react/src/core/FileTree.tsx
Lines 1 to 264 in aa9a5d9
Describe the solution you'd like.
File tree should implement proper HTML semantics and expected interactivity. It should follow https://www.w3.org/WAI/ARIA/apg/patterns/treeview/ pattern.
Implementing such component is difficult and slow. It's not something that TutorialKit itself should focus on.
Check Radix, React Aria and similar component libraries for ready-to-use treeview components and build TutorialKit's
FileTree
on top of that.Describe alternatives you've considered.
Ignore accessibility and usability completely and wait for users to file bug reports. Keep building more and more work-arounds on top of the current component. 🫠
Additional context
Note
Help wanted!
Check existing component libraries like Radix and React Aria, and see if they have treeview component that could be used.
The text was updated successfully, but these errors were encountered: