1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 16:23:44 +00:00

[CL-145] add secondary variant to bit-layout side nav (#7038)

This commit is contained in:
Will Martin
2023-11-30 11:44:42 -05:00
committed by GitHub
parent 1c43f77d51
commit ebc28244cd
3 changed files with 172 additions and 4 deletions

View File

@@ -1,5 +1,13 @@
<div class="tw-flex tw-w-full">
<aside
[ngStyle]="
variant === 'secondary' && {
'--color-text-alt2': 'var(--color-text-main)',
'--color-background-alt3': 'var(--color-secondary-100)',
'--color-background-alt4': 'var(--color-secondary-300)',
'--color-secondary-300': 'var(--color-secondary-500)'
}
"
class="tw-fixed tw-inset-y-0 tw-left-0 tw-h-screen tw-w-60 tw-overflow-auto tw-bg-background-alt3"
>
<ng-content select="[slot=sidebar]"></ng-content>