Skip to content

Commit

Permalink
23.12.17: wt-icon active color [WTEL-3912]
Browse files Browse the repository at this point in the history
  • Loading branch information
dlohvinov committed Oct 16, 2023
1 parent d4131ad commit e8a6e42
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webitel/ui-sdk",
"version": "23.12.16",
"version": "23.12.17",
"private": false,
"scripts": {
"build": "vue-cli-service build --target lib --name ui-sdk ./src/install.js",
Expand Down
2 changes: 1 addition & 1 deletion src/components/wt-icon/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Different color icons:
```vue
const colors = ['default', 'disabled', 'primary', 'error', 'success', 'warning', 'on-dark', 'on-light', 'on-primary', 'info', 'chat', 'transfer', 'job'];
const colors = ['default', 'active', 'disabled', 'primary', 'error', 'success', 'warning', 'on-dark', 'on-light', 'on-primary', 'info', 'chat', 'transfer', 'job'];
<div
style="display: flex; align-items: center; gap: 5px;"
Expand Down
2 changes: 2 additions & 0 deletions src/components/wt-icon/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
--icon-xs-size: 8px;

--icon-color: var(--grey-darken-2);
--icon-active-color: var(--grey-darken-4);
--icon-primary-color: var(--primary-color);
--icon-error-color: var(--error-color);
--icon-success-color: var(--success-color);
Expand All @@ -25,5 +26,6 @@

:root.theme--dark {
--icon-color: var(--grey-lighten-2);
--icon-active-color: var(--grey-lighten-4);
--icon-disabled-color: var(--grey-darken-2);
}
5 changes: 4 additions & 1 deletion src/components/wt-icon/wt-icon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const props = defineProps({
default: 'md',
},
/**
* @values 'default', 'disabled', 'primary', 'error', 'success', 'warning', 'on-dark', 'on-light', 'on-primary', 'info', 'chat', 'transfer', 'job'
* @values 'default', 'active', 'disabled', 'primary', 'error', 'success', 'warning', 'on-dark', 'on-light', 'on-primary', 'info', 'chat', 'transfer', 'job'
*/
color: {
type: String,
Expand Down Expand Up @@ -88,6 +88,9 @@ svg {
&-default .wt-icon__icon {
fill: var(--icon-color);
}
&-active .wt-icon__icon {
fill: var(--icon-active-color);
}
&-primary .wt-icon__icon {
fill: var(--icon-primary-color);
}
Expand Down

0 comments on commit e8a6e42

Please sign in to comment.