-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Add chevrons to the templates and template parts in site editor. #50076
Conversation
Size Change: +581 B (0%) Total Size: 1.37 MB
ℹ️ View Unchanged
|
Should the "Manage all" links also include a chevron? They technically open another level, it just seemed a bit odd to me. Happy to add it back if it's preferred. |
Thanks for picking this up. In the interest of consistency, would it make sense to add the chevrons to drilldowns in the Navigation panel too?
I could go either way on this, but would lean towards including it, again just to be consistent.
|
Thanks for the updates. I'll add the chevron back in for the manage all links. I'll also add them in for the navigation screens since the chevron looks different there now. |
Actually scratch the navigation screen menus, I just realized that makes no sense because they don't work the same as other menus with sub menus. 👍 |
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.
{ ! icon && children } | ||
) } | ||
<FlexBlock>{ children }</FlexBlock> | ||
{ withChevron && ( |
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.
Any possibility that this icon will be something other than a chevron? E.g., +
or something?
Just asking. Looks easy enough to abstract should this ever be a use case in the future. 👍
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.
I would think it's unlikely, but nothing is written in stone!
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.
It's possible, although in the existing code it was called this, so I matched it. Pretty straightforward to change in the future if needed.
Ah, I meant Page Links in the Navigation panel, which do have the drilldown behavior: drilldowns.mp4 |
@jameskoster Sounds good. I am going to open a new PR shortly for the navigation items because it's going to be a bit more in-depth and will hold these changes up. |
Fixes #48591
What?
Add chevrons to templates and template parts in the site editor to indicate that these can be drilled down another level. This matches the top level.
Why?
To improve the consistency of interactions.
How?
Modify
SidebarNavigationItem
to allow the inclusion of a chevron without the inclusion of an icon at the start of the item.Testing Instructions
Templates
and make sure all templates listed have a chevron on the right side.Template Parts
and make sure all templates listed have a chevron on the right side.Screenshots or screencast
Before
After