mirror of
https://github.com/bitwarden/browser
synced 2026-02-10 13:40:06 +00:00
* [PM-14426] Add hideIcon input to simple dialog component * [PM-14426] Introduce dark-image-source.directive.ts * [PM-14426] Tweaks to the Vault Carousel component - Create a Carousel NgModule so that the carousel component and carousel slide component are exported - Update barrel files - Adjust min height calculation logic to wait for ;hidden slides to finish rendering before calculating height * [PM-14426] Introduce at risk password getting started carousel component and images * [PM-14426] Refactor at-risk-password-page.service.ts to use the same state definition for banner and carousel dismissal * [PM-14426] Open the getting started carousel on page load * [PM-14426] Add tests * [PM-14426] Use booleanAttribute * [PM-14426] Fix failing type checking
26 lines
811 B
HTML
26 lines
811 B
HTML
<section
|
|
aria-roledescription="carousel"
|
|
[attr.aria-label]="label"
|
|
[ngStyle]="{ minHeight: minHeight ?? undefined }"
|
|
class="tw-flex tw-flex-col"
|
|
#container
|
|
>
|
|
<vault-carousel-content [content]="slides.get(selectedIndex)?.content"></vault-carousel-content>
|
|
<div
|
|
class="tw-w-full tw-flex tw-gap-2 tw-justify-center tw-mt-auto tw-pt-4"
|
|
role="tablist"
|
|
(keydown)="keyManager.onKeydown($event)"
|
|
#carouselButtonWrapper
|
|
>
|
|
<vault-carousel-button
|
|
*ngFor="let slide of slides; let i = index"
|
|
[slide]="slide"
|
|
[isActive]="i === selectedIndex"
|
|
(onClick)="selectSlide(i)"
|
|
></vault-carousel-button>
|
|
</div>
|
|
<div class="tw-absolute tw-invisible" #tempSlideContainer *ngIf="minHeight === null">
|
|
<ng-template cdkPortalOutlet></ng-template>
|
|
</div>
|
|
</section>
|