Re:Show HN: JsonTree, a 3.53kb JavaScript tool for generatin...
by Lorin on Friday February 24, 2017 @06:22PM
(#13728867)
Neat, but generated tree isn't keyboard accessible.
[ Parent
| on HN ]
Re:Show HN: JsonTree, a 3.53kb JavaScript tool for generatin...
by MaxLeiter on Friday February 24, 2017 @06:42PM
(#13728987)
keyboard accessible? are most html trees?
Re:Show HN: JsonTree, a 3.53kb JavaScript tool for generatin...
by simonw on Friday February 24, 2017 @07:15PM
(#13729175)
They definitely should be, for accessibility reasons and because it's not that difficult to support.
Here's an example of a tree widget that can be navigated by keyboard: https://www.jstree.com/docs/html/
Re:Show HN: JsonTree, a 3.53kb JavaScript tool for generatin...
by EdSharkey on Friday February 24, 2017 @07:57PM
(#13729364)
I'm not a fan of javascript being used for the clicky handlers, even if the element being clicked is a natural clicky element like an anchor tag.
It's much better to rely on a toggle like input type=checkbox and CSS to visualize tree expand and collapse based on checkbox states than to install click handlers in javascript. I suspect you could make such an arrangement more accessible and keyboard navigable as well (via grouping.)
Javascript should only be used to dynamically load/unload subtrees on click in the case of especially huge or costly trees.
Re:Show HN: JsonTree, a 3.53kb JavaScript tool for generatin...
by recklessplayer on Sunday February 26, 2017 @03:09AM
(#13736224)
As a blind screen reader user, I rely on keyboard accessibility for navigating any type of tree.
Now I know not to checkout your project as it would be of no use to me.