mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-07 09:31:31 +01:00
[CL-475] Use buttons instead of anchors for popup tab navigation (#11643)
This commit is contained in:
parent
021efa2c90
commit
b391c291df
@ -3,30 +3,36 @@
|
|||||||
</div>
|
</div>
|
||||||
<footer class="tw-bg-background tw-border-0 tw-border-t tw-border-secondary-300 tw-border-solid">
|
<footer class="tw-bg-background tw-border-0 tw-border-t tw-border-secondary-300 tw-border-solid">
|
||||||
<div class="tw-max-w-screen-sm tw-mx-auto">
|
<div class="tw-max-w-screen-sm tw-mx-auto">
|
||||||
<div class="tw-flex tw-flex-1">
|
<nav>
|
||||||
<a
|
<ul class="tw-flex tw-flex-1 tw-mb-0 tw-p-0">
|
||||||
*ngFor="let button of navButtons"
|
<li *ngFor="let button of navButtons" class="tw-flex-1 tw-list-none">
|
||||||
class="tw-flex-1 tw-group tw-flex tw-flex-col tw-items-center tw-gap-1 tw-px-0.5 tw-pb-2 tw-pt-3 tw-no-underline hover:tw-no-underline hover:tw-text-primary-600 hover:tw-bg-primary-100 tw-border-2 tw-border-solid tw-border-transparent focus-visible:tw-rounded-lg focus-visible:tw-border-primary-500"
|
<button
|
||||||
|
class="tw-w-full tw-flex tw-flex-col tw-items-center tw-gap-1 tw-px-0.5 tw-pb-2 tw-pt-3 tw-bg-transparent tw-no-underline hover:tw-no-underline hover:tw-text-primary-600 hover:tw-bg-primary-100 tw-border-2 tw-border-solid tw-border-transparent focus-visible:tw-rounded-lg focus-visible:tw-border-primary-600"
|
||||||
[ngClass]="rla.isActive ? 'tw-font-bold tw-text-primary-600' : 'tw-text-muted'"
|
[ngClass]="rla.isActive ? 'tw-font-bold tw-text-primary-600' : 'tw-text-muted'"
|
||||||
[title]="button.label"
|
[title]="button.label"
|
||||||
[routerLink]="button.page"
|
[routerLink]="button.page"
|
||||||
routerLinkActive
|
routerLinkActive
|
||||||
#rla="routerLinkActive"
|
#rla="routerLinkActive"
|
||||||
ariaCurrentWhenActive="page"
|
ariaCurrentWhenActive="page"
|
||||||
|
type="button"
|
||||||
|
role="link"
|
||||||
>
|
>
|
||||||
<i *ngIf="!rla.isActive" class="bwi bwi-lg bwi-{{ button.iconKey }}" aria-hidden="true"></i>
|
<i
|
||||||
|
*ngIf="!rla.isActive"
|
||||||
|
class="bwi bwi-lg bwi-{{ button.iconKey }}"
|
||||||
|
aria-hidden="true"
|
||||||
|
></i>
|
||||||
<i
|
<i
|
||||||
*ngIf="rla.isActive"
|
*ngIf="rla.isActive"
|
||||||
class="bwi bwi-lg bwi-{{ button.iconKeyActive }}"
|
class="bwi bwi-lg bwi-{{ button.iconKeyActive }}"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
></i>
|
></i>
|
||||||
<span
|
<span class="tw-truncate tw-max-w-full">
|
||||||
class="tw-truncate tw-max-w-full"
|
|
||||||
[ngClass]="!rla.isActive && 'group-hover:tw-underline'"
|
|
||||||
>
|
|
||||||
{{ button.label }}
|
{{ button.label }}
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</button>
|
||||||
</div>
|
</li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
Loading…
Reference in New Issue
Block a user