-
Notifications
You must be signed in to change notification settings - Fork 483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(@clayui/css): LPD-40160 Adds menubar-primary for CMS Product Menu variant #5898
base: master
Are you sure you want to change the base?
Conversation
… for CMS Product Menu variant
…enu in VerticalNav
@marcoscv-work any recommendations for this one? |
Hey guys @ethib137 @pat270 if we use |
<Nav aria-orientation="vertical" nested role="menubar"> | ||
<VerticalNavContext.Provider | ||
value={{ | ||
activeKey: | ||
active && collection.hasItem(active) | ||
? active | ||
: hasDepthActive | ||
? null | ||
: undefined, | ||
ariaCurrent: ariaCurrent ? 'page' : null, | ||
childrenRoot: childrenRootRef, | ||
close, | ||
expandedKeys, | ||
firstKey: collection.getFirstItem().key, | ||
open, | ||
spritemap, | ||
toggle, | ||
}} | ||
> | ||
<Collection<T> collection={collection} /> | ||
</VerticalNavContext.Provider> | ||
</Nav> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could store this in a constant to avoid repeating the code and reuse it below.
https://liferay.atlassian.net/browse/LPD-40160
I'm sending this as a draft because we have a problem with the accordion headers. They can only be
button
and in some of the headers we have nested plus buttons. Having abutton
nested in abutton
violates:from the w3c spec. I need some help figuring out which component we should place
<div role="button">
to make our markup valid.