Why provide the Node component as a child and not a prop? Seems less intuitive to me.
React Arborist – A full-featured tree component for React
31–40 of 57 posts
Re: React Arborist – A full-featured tree component for React
#32Earlier quoted context omitted.
Thank you! Don’t sweat not knowing, but without 100% accessibility coverage, the component might as well not exist — it could not be used in any publicly funded project in EU/USA or any commercial project in the EU, because it would be against the law to do so.
Nonsense. A deep study about web accessibility some 2 years ago revealed that 98.8% of web pages have accessibility issues. So saying "might as well not exist" is a dramatization of reality.
(I know you’re arguing against someone claiming 100% accessibility coverage as a requirement, but I wanted to point out that figures like 98.8% are grossly inflated and quite meaningless.)
Re: React Arborist – A full-featured tree component for React
#33Very sad to discover that this is NOT a ready made component to display actual trees. What a deceitful name! Jokes apart, nice library. Will try it out sooner or later. May I suggest to not use children as the prop to Ps the Node component? Maybe a more explicit NodeComponent prop would have been better imho.
Dang it, I can see how the title was deceptive. This is headless component, leaving the markup and styling completely up to the user. Many of the tree components I looked at before building this didn't let me do exactly what I wanted with the style like this one does. However, I was thinking of shipping a default " " component that comes with some default styling to get people up and running quickly. I've just made a…
This is the approach used by most headless projects such has headless ui or radix.
Re: React Arborist – A full-featured tree component for React
#34Why provide the Node component as a child and not a prop? Seems less intuitive to me.
Re: React Arborist – A full-featured tree component for React
#35Very sad to discover that this is NOT a ready made component to display actual trees. What a deceitful name! Jokes apart, nice library. Will try it out sooner or later. May I suggest to not use children as the prop to Ps the Node component? Maybe a more explicit NodeComponent prop would have been better imho.
Hey, since you get to decide the structure yourself, I’m sure you could use that to draw a real tree using SVG.
Re: React Arborist – A full-featured tree component for React
#36This is a great survey of the many ways trees can be used in UX: https://medium.com/@hagan.rivers/interaction-design-for-tree... My favorite is the Tree Table
Re: React Arborist – A full-featured tree component for React
#37Earlier quoted context omitted.
Thank you! Don’t sweat not knowing, but without 100% accessibility coverage, the component might as well not exist — it could not be used in any publicly funded project in EU/USA or any commercial project in the EU, because it would be against the law to do so.
> without 100% accessibility coverage If that's the standard for open-source projects, it's a wonder any FE components get used
100% is not hyperbole, even though ”not exist” is.
Re: React Arborist – A full-featured tree component for React
#38Earlier quoted context omitted.
Thank you! Don’t sweat not knowing, but without 100% accessibility coverage, the component might as well not exist — it could not be used in any publicly funded project in EU/USA or any commercial project in the EU, because it would be against the law to do so.
Nonsense. A deep study about web accessibility some 2 years ago revealed that 98.8% of web pages have accessibility issues. So saying "might as well not exist" is a dramatization of reality.
Re: React Arborist – A full-featured tree component for React
#39Earlier quoted context omitted.
Nonsense. A deep study about web accessibility some 2 years ago revealed that 98.8% of web pages have accessibility issues. So saying "might as well not exist" is a dramatization of reality.
The significant majority of accessibility issues found by those sorts of large-range studies are comparatively minor, and often completely spurious. I have been decidedly unimpressed with every such study that I have delved into the results of. (I know you’re arguing against someone claiming 100% accessibility coverage as a requirement, but I wanted to point out that figures like 98.8% are grossly inflated and quite…
That said, the entire accessibility scene is fundamentally broken on the technical side and full of snake oil salesmen on the business side.
Anxiously waiting for WCAG to finish an actual standard, and for vendors to actually implement it.
Re: React Arborist – A full-featured tree component for React
#40My first thought - how React Arborist is different from Ant Tree? https://ant.design/components/tree/
React Arborist dependencies looks sane https://github.com/brimdata/react-arborist/blob/main/package...
"memoize-one": "^6.0.0", "react-dnd": "^14.0.3", "react-dnd-html5-backend": "^14.0.1", "react-window": "^1.8.6"
However I was never a fan of react-dnd. Extremely hard to reason about react-dnd-html5-backend and spagetti code once you face edge scenarios.
Hard coded css means I need to fork the library
https://github.com/brimdata/react-arborist/blob/main/package...
const style: CSSProperties = {
position: "absolute",
pointerEvents: "none",
top: top - 2 + "px",
left: treeView.indent + left + "px",
right: treeView.indent + "px",
};