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

[CL-718] nav updates (#15226)

* add basic new nav item styling

* update alt-3 bg color

* add x padding to item

* remove copy left in error

* style app switcher to match nav items

* adding new button hover colors

* add new logo lockups

* use new logos in web vault

* fix color and svg fills

* use set height for nav items

* optimize SVGs

* move if logic

* use rem for icon size

* move shield logo

* use shield svg for collapsed icon

* remove unused eslint disable directive

* run prettier

* remove variables

* update logo hover styles

* use more standard flow control syntax

* update admin console logo svg

* add new hover variables

* use class instead of fill

* use variable for logo hover

* remove unnecessary container

* use hover variable for nav switcher

* use correct variables for fill colors

* update hover state to use variable left in error

* give icon width to preserve text alignment

* remove tree story as functionality no longer supported

* remove nested styles helper

* remove obsolete afterContentInit

* remove tree example from layout story

* remove tree example from secondary layout story

* remove tree example from kitchen sink story

* Fix interaction test

* remove remaining references to tree variant
This commit is contained in:
Bryan Cunningham
2025-07-03 16:12:56 -04:00
committed by GitHub
parent 3e4b82d725
commit b4d87007ba
27 changed files with 213 additions and 531 deletions

View File

@@ -81,16 +81,18 @@ export const Default: Story = {
template: /* HTML */ `<bit-layout>
<bit-side-nav>
<bit-nav-group text="Password Managers" icon="bwi-collection-shared" [open]="true">
<bit-nav-group
text="Favorites"
icon="bwi-collection-shared"
variant="tree"
[open]="true"
>
<bit-nav-item text="Bitwarden" route="bitwarden"></bit-nav-item>
<bit-nav-divider></bit-nav-divider>
</bit-nav-group>
<bit-nav-item text="Virtual Scroll" route="virtual-scroll"></bit-nav-item>
<bit-nav-item text="Child A" route="a" icon="bwi-filter"></bit-nav-item>
<bit-nav-item text="Child B" route="b"></bit-nav-item>
<bit-nav-item
text="Virtual Scroll"
route="virtual-scroll"
icon="bwi-filter"
></bit-nav-item>
</bit-nav-group>
<bit-nav-group text="Favorites" icon="bwi-filter">
<bit-nav-item text="Favorites Child A" icon="bwi-filter"></bit-nav-item>
<bit-nav-item text="Favorites Child B"></bit-nav-item>
<bit-nav-item text="Favorites Child C" icon="bwi-filter"></bit-nav-item>
</bit-nav-group>
</bit-side-nav>
<router-outlet></router-outlet>