Skip to content
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

Navigation Enhancement #753

Open
Jan-Eimertenbrink opened this issue Sep 20, 2024 · 0 comments
Open

Navigation Enhancement #753

Jan-Eimertenbrink opened this issue Sep 20, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Jan-Eimertenbrink
Copy link

Description

We noticed that a navigation with groups and collapsible groups cannot be combined without causing the layout to shift. However, in our design system, we aim for a modular structure that allows our components to be as versatile as possible. Therefore, we will make some adjustments.

Bildschirmfoto 2024-09-20 um 10 22 51

From now on, we will divide our navigation into "Navigation" and "Navigation with Groups". The "Navigation with Groups" will come in two variants: collapsible and not collapsible (with lable).

GroupHead

When a navigation group gets a head with a label, we will give that lable the same padding as the Menu-Items: 8px horizontally and 4px vertically. This way, the label will visually align with the content of the Menu-Items. This provides a more calm visual structure and enables the combination with collapsible groups.

Bildschirmfoto 2024-09-20 um 10 28 17

For collapsible groups, we use the AccordionTrigger and place it above the Menu-Items. The AccordionTrigger will inherit the Menu-Item's padding, adjusting from 4px horizontal and 2px vertical to 8px horizontal and 4px vertical. This ensures that our Menu-Items always align with the group header, even if we later decide to adjust the accordion padding.

Tokens

The tokens used should already exist:

  --menu-item-padding-x: var(--size-s);  
  --menu-item-padding-y: var(--size-xs);
@Jan-Eimertenbrink Jan-Eimertenbrink added the enhancement New feature or request label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant