Add chevrons to the templates and template parts in site editor.#50076
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. 👍 |
| { ! icon && children } | ||
| ) } | ||
| <FlexBlock>{ children }</FlexBlock> | ||
| { withChevron && ( |
There was a problem hiding this comment.
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.
I would think it's unlikely, but nothing is written in stone!
There was a problem hiding this comment.
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
SidebarNavigationItemto allow the inclusion of a chevron without the inclusion of an icon at the start of the item.Testing Instructions
Templatesand make sure all templates listed have a chevron on the right side.Template Partsand make sure all templates listed have a chevron on the right side.Screenshots or screencast
Before

After
