Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Jun 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>',
},
};
Loading