Skip to content

Commit

Permalink
chore(storybook): add notification example to show bold text and link…
Browse files Browse the repository at this point in the history
…s EBS-1441 (#228)

* chore(storybook): add notification example to show bold text and links EBS-1441

* chore(storybook): add notification example to show bold text and links EBS-1441

---------

Co-authored-by: Vanessa.Jalakas <vanessa.jalakas@nortal.ee>
  • Loading branch information
kasutajaVJ and Vanessa.Jalakas authored Jun 5, 2024
1 parent 6759e65 commit 833bd53
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions libs/ui/src/lib/notification/notification.component.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,24 @@ export const Default = {
}),
};

export const HtmlSection = {
render: (args: NotificationComponent) => ({
props: args,
/* template */
template: `
<cvi-ng-notification [severity]="severity"
[size]="size"
[showIcon]="showIcon"
[showCloseButton]="showCloseButton"
[title]="title"
[iconName]="iconName"
>
<cvi-ng-html-section html="{{content}}"></cvi-ng-html-section>
</cvi-ng-notification>
`,
}),
};

export const Success = {
...Default,
args: { severity: 'success' },
Expand Down Expand Up @@ -73,3 +91,12 @@ export const WithCompactSizeAndCustomIcon = {
iconName: 'check_circle_outline',
},
};
export const WithBoldTextAndLink = {
...HtmlSection,
args: {
severity: 'neutral',
size: 'compact',
content:
'<b>Bold text</b> and link <a href="https://www.jenkins.io/" target="_blank" class="external-link">Click here</a>',
},
};

0 comments on commit 833bd53

Please sign in to comment.