1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-22 19:23:52 +00:00

CL-261: update popover styles and fix stories (#13547)

* updated popover styles and fix stories

* fixed alignment of icon button title and added long title story
This commit is contained in:
Danielle Flinn
2025-02-25 13:55:21 -08:00
committed by GitHub
parent 6f2a713b03
commit e6e6058f9e
3 changed files with 43 additions and 18 deletions

View File

@@ -1,11 +1,11 @@
<ng-template>
<section cdkTrapFocus cdkTrapFocusAutoCapture class="tw-relative" role="dialog" aria-modal="true">
<div class="tw-overflow-hidden tw-rounded-md tw-border tw-border-solid tw-border-secondary-300">
<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 class="tw-mb-0 tw-mt-1 tw-text-base tw-font-semibold">
<h2 bitTypography="h5" class="tw-mt-1 tw-font-semibold">
{{ title }}
</h2>
<button
@@ -14,9 +14,11 @@
[attr.title]="'close' | i18n"
[attr.aria-label]="'close' | i18n"
(click)="closed.emit()"
size="small"
class="tw-mt-0.5"
></button>
</div>
<div class="tw-px-4">
<div bitTypography="body2" class="tw-px-4">
<ng-content></ng-content>
</div>
</div>