mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 09:43:23 +00:00
* Add light LinkType to link directive * add skip link to bit-layout; update i18n for all apps * install storybook interaction testing packages * update storybook config * add skiplink story to bit-layout * update route and focus logic * remove focus ring
24 lines
600 B
TypeScript
24 lines
600 B
TypeScript
import { Component, Input } from "@angular/core";
|
|
import { RouterModule } from "@angular/router";
|
|
|
|
import { LinkModule } from "../link";
|
|
import { SharedModule } from "../shared";
|
|
|
|
export type LayoutVariant = "primary" | "secondary";
|
|
|
|
@Component({
|
|
selector: "bit-layout",
|
|
templateUrl: "layout.component.html",
|
|
standalone: true,
|
|
imports: [SharedModule, LinkModule, RouterModule],
|
|
})
|
|
export class LayoutComponent {
|
|
protected mainContentId = "main-content";
|
|
|
|
@Input() variant: LayoutVariant = "primary";
|
|
|
|
focusMainContent() {
|
|
document.getElementById(this.mainContentId)?.focus();
|
|
}
|
|
}
|