mirror of
https://github.com/bitwarden/browser
synced 2026-01-28 07:13:29 +00:00
use icon type in iconButton component
This commit is contained in:
@@ -16,6 +16,7 @@ import { AriaDisableDirective } from "../a11y";
|
||||
import { setA11yTitleAndAriaLabel } from "../a11y/set-a11y-title-and-aria-label";
|
||||
import { ButtonLikeAbstraction } from "../shared/button-like.abstraction";
|
||||
import { FocusableElement } from "../shared/focusable-element";
|
||||
import { BitwardenIcon } from "../shared/icon";
|
||||
import { SpinnerComponent } from "../spinner";
|
||||
import { TooltipDirective } from "../tooltip";
|
||||
import { ariaDisableElement } from "../utils";
|
||||
@@ -116,7 +117,7 @@ const sizes: Record<IconButtonSize, string[]> = {
|
||||
],
|
||||
})
|
||||
export class BitIconButtonComponent implements ButtonLikeAbstraction, FocusableElement {
|
||||
readonly icon = model.required<string>({ alias: "bitIconButton" });
|
||||
readonly icon = model.required<BitwardenIcon>({ alias: "bitIconButton" });
|
||||
|
||||
readonly buttonType = input<IconButtonType>("main");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user