Navigation Component: Add ul
Automatically Where Needed
#25248
Labels
[Feature] Navigation Component
A navigational waterfall component for hierarchy of items.
[Status] In Progress
Tracking issues with work in progress
NavigationMenu
can contains multiple lists orNavigationGroup
s, so it doesn't wrap its children with anul
.On the other hand,
NavigationItem
is ali
, so it needs to live inside anul
.See the story for an example.
Possible solutions:
By traversing the
NavigationMenu
children, we can determine if it needs anul
and automatically add it, instead of offloading the burden to the consumer.Depends on Navigation Component: Store the Navigation Tree in the Context #25246 exploration.
Make
NavigationMenu
always render as anul
, andNavigationGroup
as a<li><ul /></li>
.In other words, if a menu contains only one list, it will be a simple lists; otherwise it will be a list of lists (whereas right now is a "series" of lists).
See #25057 (comment)
The text was updated successfully, but these errors were encountered: