-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(vwc-icon): connotation support (#957)
* feat(vwc-icon): connotation support * focus on color rather than fill * story fix * feature scoped connotation * uneeded variable * chore(workspace): decoupled from ts modules Co-authored-by: Tal Weinfeld <tal.weinfeld@vonage.com> Co-authored-by: tveinfeld <67224311+tveinfeld@users.noreply.github.com>
- Loading branch information
1 parent
6b299f4
commit c7bbfac
Showing
17 changed files
with
79 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
$icon-color: --vvd-icon-color; | ||
// $icon-color-on-connotation: --vvd-icon-color-on-connotation; | ||
|
||
@use '@vonage/vvd-foundation/scss/mixins/color-connotation' as color-connotation with ( | ||
$connotations-set: primary cta announcement success alert info, | ||
$connotation-variable: #{$icon-color}, | ||
// $on-connotation-variable: #{$icon-color-on-connotation} | ||
); | ||
|
||
@include color-connotation.connotations-main; | ||
|
||
:host { | ||
color: var(#{$icon-color}, currentColor); | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,23 @@ | ||
// import { Size } from '@vonage/vvd-foundation/constants'; | ||
|
||
const ICON_CONNOTATIONS = ['primary', 'cta', 'announcement', 'success', 'alert', 'warning', 'info']; | ||
const ICON_SIZES = ['small', 'medium', 'large']; | ||
|
||
export const argTypes = { | ||
connotation: { | ||
control: { | ||
type: 'select', | ||
options: [undefined, ...ICON_CONNOTATIONS], | ||
} | ||
}, | ||
size: { | ||
control: { | ||
type: 'select', | ||
options: ['small', 'medium', 'large'], | ||
options: ICON_SIZES, | ||
} | ||
}, | ||
inline: { | ||
control: { | ||
type: 'inline-radio', | ||
options: { 'true': '', 'false': undefined } | ||
options: { true: '', false: undefined } | ||
} | ||
}, | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters