mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 09:13:33 +00:00
* updated popover styles and fix stories * fixed alignment of icon button title and added long title story
29 lines
1.0 KiB
HTML
29 lines
1.0 KiB
HTML
<ng-template>
|
|
<section cdkTrapFocus cdkTrapFocusAutoCapture class="tw-relative" role="dialog" aria-modal="true">
|
|
<div class="tw-overflow-hidden tw-rounded-xl tw-border tw-border-solid tw-border-secondary-300">
|
|
<div
|
|
class="tw-relative tw-z-20 tw-w-72 tw-break-words tw-bg-background tw-pb-4 tw-pt-2 tw-text-main"
|
|
>
|
|
<div class="tw-mb-1 tw-mr-2 tw-flex tw-items-start tw-justify-between tw-gap-4 tw-pl-4">
|
|
<h2 bitTypography="h5" class="tw-mt-1 tw-font-semibold">
|
|
{{ title }}
|
|
</h2>
|
|
<button
|
|
type="button"
|
|
bitIconButton="bwi-close"
|
|
[attr.title]="'close' | i18n"
|
|
[attr.aria-label]="'close' | i18n"
|
|
(click)="closed.emit()"
|
|
size="small"
|
|
class="tw-mt-0.5"
|
|
></button>
|
|
</div>
|
|
<div bitTypography="body2" class="tw-px-4">
|
|
<ng-content></ng-content>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="bit-popover-arrow"></div>
|
|
</section>
|
|
</ng-template>
|