;
export const Default: Story = {
render: (args) => ({
template: /*html*/ `
- (args)}>Your text here
+ (args)}>Your text here
`,
}),
};
@@ -77,14 +76,12 @@ export const Buttons: Story = {
-
-
-
+
Chevron Icon Button
@@ -108,14 +105,12 @@ export const Anchors: StoryObj = {
Anchor
@@ -144,14 +139,51 @@ export const Inline: Story = {
},
};
-export const Disabled: Story = {
+export const WithIcons: Story = {
render: (args) => ({
props: args,
template: /*html*/ `
- Primary
- Secondary
+
+
+
+
+
+ Add item
+
+
+ Next
+
+
+ Download complete
+
+
+ `,
+ }),
+ args: {
+ linkType: "primary",
+ },
+};
+
+export const Disabled: Story = {
+ render: (args) => ({
+ props: {
+ ...args,
+ onClick: () => {
+ alert("Button clicked! (This should not appear when disabled)");
+ },
+ },
+ template: /*html*/ `
+ Primary button
+ Links can not be disabled
+ Secondary button
- Contrast
+ Contrast button
`,
}),
diff --git a/libs/vault/src/cipher-form/components/autofill-options/advanced-uri-option-dialog.component.ts b/libs/vault/src/cipher-form/components/autofill-options/advanced-uri-option-dialog.component.ts
index 3580b1fada8..04545730172 100644
--- a/libs/vault/src/cipher-form/components/autofill-options/advanced-uri-option-dialog.component.ts
+++ b/libs/vault/src/cipher-form/components/autofill-options/advanced-uri-option-dialog.component.ts
@@ -3,13 +3,13 @@ import { Component, inject } from "@angular/core";
import { JslibModule } from "@bitwarden/angular/jslib.module";
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
import {
- ButtonLinkDirective,
ButtonModule,
+ CenterPositionStrategy,
DialogModule,
+ DialogRef,
DialogService,
DIALOG_DATA,
- DialogRef,
- CenterPositionStrategy,
+ LinkComponent,
} from "@bitwarden/components";
export type AdvancedUriOptionDialogParams = {
@@ -22,7 +22,7 @@ export type AdvancedUriOptionDialogParams = {
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
@Component({
templateUrl: "advanced-uri-option-dialog.component.html",
- imports: [ButtonLinkDirective, ButtonModule, DialogModule, JslibModule],
+ imports: [LinkComponent, ButtonModule, DialogModule, JslibModule],
})
export class AdvancedUriOptionDialogComponent {
constructor(private dialogRef: DialogRef) {}
diff --git a/libs/vault/src/cipher-view/cipher-view.component.html b/libs/vault/src/cipher-view/cipher-view.component.html
index 3d0cc4c4414..05d2ecede72 100644
--- a/libs/vault/src/cipher-view/cipher-view.component.html
+++ b/libs/vault/src/cipher-view/cipher-view.component.html
@@ -12,9 +12,15 @@
-
+
{{ "changeAtRiskPassword" | i18n }}
-
diff --git a/libs/vault/src/cipher-view/item-details/item-details-v2.component.ts b/libs/vault/src/cipher-view/item-details/item-details-v2.component.ts
index 8132780ccf4..f827fdbf016 100644
--- a/libs/vault/src/cipher-view/item-details/item-details-v2.component.ts
+++ b/libs/vault/src/cipher-view/item-details/item-details-v2.component.ts
@@ -17,9 +17,9 @@ import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
import { FolderView } from "@bitwarden/common/vault/models/view/folder.view";
import {
BadgeModule,
- ButtonLinkDirective,
CardComponent,
FormFieldModule,
+ LinkComponent,
TypographyModule,
} from "@bitwarden/components";
@@ -37,7 +37,7 @@ import { OrgIconDirective } from "../../components/org-icon.directive";
TypographyModule,
OrgIconDirective,
FormFieldModule,
- ButtonLinkDirective,
+ LinkComponent,
BadgeModule,
],
})