Skip to content

Commit

Permalink
task: respect button shape in sidenav
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkott committed Oct 29, 2023
1 parent 8c5f69a commit 1edd056
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/sass/components/_sidenav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
--sidenav-padding-x: 1.5rem;
--sidenav-close-color: var(--button-font-color);
--sidenav-close-background: var(--primary-color);
--sidenav-close-border-radius: var(--button-border-radius);
--sidenav-close-font-size: 2rem;
--sidenav-close-height: 4rem;
--sidenav-close-width: 4rem;
--sidenav-list-item-boder-radius: 0;
--sidenav-list-item-color: var(--button-font-color);
--sidenav-list-item-background: var(--primary-color);
--sidenav-list-item-font-size: 1rem;
Expand Down Expand Up @@ -65,6 +67,8 @@
color: var(--sidenav-close-color);
background: var(--sidenav-close-background);
font-size: var(--sidenav-close-font-size);
border-bottom-left-radius: var(--sidenav-close-border-radius);
border-bottom-right-radius: var(--sidenav-close-border-radius);
width: var(--sidenav-close-width);
height: var(--sidenav-close-height);
border: none;
Expand All @@ -86,6 +90,7 @@
padding: var(--sidenav-list-item-padding-y) var(--sidenav-list-item-padding-x);
font-size: var(--sidenav-list-item-font-size);
font-weight: var(--sidenav-list-item-font-weight);
border-radius: var(--sidenav-list-item-boder-radius);
line-height: 1;
color: var(--sidenav-list-item-color);
text-align: center;
Expand Down Expand Up @@ -113,3 +118,15 @@
--sidenav-list-item-background: var(--sidenav-list-item-active-background);
}
}

[data-ui-button='classic_rounded'] {
--sidenav-list-item-boder-radius: var(--button-border-radius);
}

[data-ui-button='modern_squared'] {
--sidenav-list-item-boder-radius: 0.625rem;
}

[data-ui-button='modern'] {
--sidenav-list-item-boder-radius: 2rem;
}

0 comments on commit 1edd056

Please sign in to comment.