flat list plugin (nesting with css instead of nested nodes) #2372
Replies: 2 comments 1 reply
-
Yes, we considered it. However, to make nested lists semantically correct and accessible they need to be properly nested. There are also other issues with numbered lists or nested list styling when you don’t properly nest. |
Beta Was this translation helpful? Give feedback.
-
As for the accessibility side of things, if you use a proper nested list implementation, screen readers like JAWS and NVDA properly announce them. If you do the hacky approach, they don't. This is even more evident with list of different types, i.e. nesting bullet lists in numbered lists. Screen reader support is important to us and we want to keep providing the same great level of support where possible. As for Google Docs, they recently moved to using canvas rather than the DOM, so I'm unsure if we can compare with them anymore too. In terms of performance and simplicity I agree with you, but like I said, the UX/AX is more important to get right in our opinion. |
Beta Was this translation helpful? Give feedback.
-
Hello, I see that the lists plugin required a lot of work due to the logic of the nested lists. Didn't you consider the option to "simulate" nested lists using CSS as you do with paragraph indentation instead of nesting the dom? For example something like:
I'm pretty convinced that this solution:
Have you considered this solution? Is there any reason why you think it's better to nest lists (ul inside ul...)?
Beta Was this translation helpful? Give feedback.
All reactions