mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-18 01:41:27 +01:00
[CL-173] hide nav-group active styles when expanded (#7695)
* hide nav-group active styles when open * update org-switcher to show child nav-item active styles
This commit is contained in:
parent
b054211fe6
commit
d0212bd1b0
@ -19,7 +19,7 @@
|
|||||||
[ariaLabel]="['organization' | i18n, org.name].join(' ')"
|
[ariaLabel]="['organization' | i18n, org.name].join(' ')"
|
||||||
[route]="['../', org.id]"
|
[route]="['../', org.id]"
|
||||||
(mainContentClicked)="toggle()"
|
(mainContentClicked)="toggle()"
|
||||||
[hideActiveStyles]="true"
|
[exactMatch]="true"
|
||||||
>
|
>
|
||||||
<i
|
<i
|
||||||
slot="end"
|
slot="end"
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
(mainContentClicked)="mainContentClicked.emit()"
|
(mainContentClicked)="mainContentClicked.emit()"
|
||||||
[ariaLabel]="ariaLabel"
|
[ariaLabel]="ariaLabel"
|
||||||
[exactMatch]="exactMatch"
|
[exactMatch]="exactMatch"
|
||||||
|
[hideActiveStyles]="parentHideActiveStyles"
|
||||||
>
|
>
|
||||||
<ng-template #button>
|
<ng-template #button>
|
||||||
<button
|
<button
|
||||||
|
@ -27,6 +27,11 @@ export class NavGroupComponent extends NavBaseComponent implements AfterContentI
|
|||||||
})
|
})
|
||||||
nestedItems!: QueryList<NavItemComponent>;
|
nestedItems!: QueryList<NavItemComponent>;
|
||||||
|
|
||||||
|
/** The parent nav item should not show active styles when open. */
|
||||||
|
protected get parentHideActiveStyles(): boolean {
|
||||||
|
return this.hideActiveStyles || this.open;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* UID for `[attr.aria-controls]`
|
* UID for `[attr.aria-controls]`
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user