mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
* rebase to master * use bit-menu in product switcher; add focusStrategy to bit-menu * recommit locales after rebase * add light style to iconButton, use in product-switcher * move out of component library * add buttonType input * gate behind sm flag * update aria-label * add role input to bit-menu * style changes * simplify partition logic * split into two components for Storybook * update focus styles; update grid sizing to relative * fix underline on hover * update attribute binding * move to layouts dir * add bitLink; update grid gap * reorder loose components * move orgs mock * move a11y module * fix aria role bug; add aria label to menu * update colors * update ring color * simplify colors * remove duplicate link module
20 lines
513 B
TypeScript
20 lines
513 B
TypeScript
import { Component, Input } from "@angular/core";
|
|
|
|
import { IconButtonType } from "@bitwarden/components/src/icon-button/icon-button.component";
|
|
|
|
import { flagEnabled } from "../../../utils/flags";
|
|
|
|
@Component({
|
|
selector: "product-switcher",
|
|
templateUrl: "./product-switcher.component.html",
|
|
})
|
|
export class ProductSwitcherComponent {
|
|
protected isEnabled = flagEnabled("secretsManager");
|
|
|
|
/**
|
|
* Passed to the product switcher's `bitIconButton`
|
|
*/
|
|
@Input()
|
|
buttonType: IconButtonType = "main";
|
|
}
|