Skip to content

Commit

Permalink
feat(note): add announcement connotation (VIV-1829) (#1839)
Browse files Browse the repository at this point in the history
  • Loading branch information
rachelbt authored Jul 8, 2024
1 parent bd53694 commit 9202a3d
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion libs/components/src/lib/note/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Add a `icon='icon-name'` attribute to set a decorative icon.
Set the `connotation` attribute to change the note's connotation.
It accepts a subset of predefined values.

- Type: `'accent'` | `'success'` | `'alert'` | `'warning'` | `'information'`
- Type: `'accent'` | `'success'` | `'alert'` | `'warning'` | `'information'` | `'announcement'`
- Default: `'accent'`

```html preview blocks
Expand All @@ -69,6 +69,11 @@ It accepts a subset of predefined values.
icon="info-solid"
headline="information note"
></vwc-note>
<vwc-note
connotation="announcement"
icon="sparkles-solid"
headline="announcement note"
></vwc-note>
<vwc-note
connotation="accent"
icon="megaphone-solid"
Expand Down
2 changes: 1 addition & 1 deletion libs/components/src/lib/note/note.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@use '../../../../../dist/libs/tokens/scss/tokens.constants' as constants;
@use '../../../../shared/src/lib/sass/mixins/connotation/config' with (
$connotations: accent success information alert warning,
$connotations: accent success information alert warning announcement,
$shades: intermediate faint fierce,
$default: accent
);
Expand Down
1 change: 1 addition & 0 deletions libs/components/src/lib/note/note.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export type NoteConnotation =
| Connotation.Information
| Connotation.Success
| Connotation.Warning
| Connotation.Announcement
| Connotation.Alert;
/**
* @public
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9202a3d

Please sign in to comment.