mirror of
https://github.com/bitwarden/browser
synced 2026-02-18 18:33:50 +00:00
* update button api to accept icons * use template outlet in button * add link component * create link component to handle anchors and buttons * remove unnecessary let variables * fix link focus state styling * update link underline style * fix broken skip link focus * add focus method to link component * fix typo * fix off center loading state * move flex styles to template to fix some minor style overrides * remove unnecessary variables * fix interaction states and add styles for test class to work properly * refactor classes and make variable sreadonly * fix classes not being applied correctly * fix bad merge conflict resolution * simplified button template
19 lines
565 B
HTML
19 lines
565 B
HTML
<span class="tw-relative tw-flex tw-items-center tw-justify-center">
|
|
<span [class.tw-invisible]="showLoadingStyle()" class="tw-flex tw-items-center tw-gap-2">
|
|
@if (startIcon()) {
|
|
<i class="{{ startIconClasses() }}"></i>
|
|
}
|
|
<div>
|
|
<ng-content></ng-content>
|
|
</div>
|
|
@if (endIcon()) {
|
|
<i class="{{ endIconClasses() }}"></i>
|
|
}
|
|
</span>
|
|
@if (showLoadingStyle()) {
|
|
<span class="tw-absolute tw-inset-0 tw-flex tw-items-center tw-justify-center">
|
|
<bit-spinner size="fill" noColor></bit-spinner>
|
|
</span>
|
|
}
|
|
</span>
|