1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 01:33:33 +00:00

[PM-18790] browser intro carousel component (#14097)

* build intro carousel for browser to show for new installations
This commit is contained in:
Jason Ng
2025-04-04 10:52:18 -04:00
committed by GitHub
parent 3a4f342471
commit 263598d9e0
16 changed files with 333 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
<ng-template>
<div
role="tabpanel"
class="tw-px-4 tw-py-5"
[ngClass]="{ 'tw-px-4 tw-py-5': !disablePadding }"
[attr.tabIndex]="noFocusableChildren ? 0 : undefined"
>
<ng-content></ng-content>

View File

@@ -1,15 +1,26 @@
import { coerceBooleanProperty } from "@angular/cdk/coercion";
import { TemplatePortal } from "@angular/cdk/portal";
import { Component, Input, OnInit, TemplateRef, ViewChild, ViewContainerRef } from "@angular/core";
import { CommonModule } from "@angular/common";
import {
booleanAttribute,
Component,
Input,
OnInit,
TemplateRef,
ViewChild,
ViewContainerRef,
} from "@angular/core";
@Component({
selector: "vault-carousel-slide",
templateUrl: "./carousel-slide.component.html",
standalone: true,
imports: [CommonModule],
})
export class VaultCarouselSlideComponent implements OnInit {
/** `aria-label` that is assigned to the carousel toggle. */
@Input({ required: true }) label!: string;
@Input({ transform: booleanAttribute }) disablePadding = false;
/**
* Should be set to true when the slide has no focusable elements.