Skip to content

Commit

Permalink
23.12.127: wt-indicator info color [WTEL-4090]
Browse files Browse the repository at this point in the history
  • Loading branch information
dlohvinov committed Dec 18, 2023
1 parent 23af5f5 commit 339d557
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const colors = [
'transfer',
'disabled',
'break-out',
'info',
];
</script>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ export default {
properties: [
{
value: 'color',
code: '<wt-indicator color="danger"></wt-indicator>',
code: '<wt-indicator color="error"></wt-indicator>',
type: ['String', 'Number'],
options: ['primary', 'secondary', 'success', 'error', 'transfer', 'disabled', 'break-out'],
options: ['primary', 'secondary', 'success', 'error', 'transfer', 'disabled', 'break-out', 'info'],
default: 'secondary',
},
{
Expand Down
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.126",
"version": "23.12.127",
"private": false,
"scripts": {
"dev": "vite",
Expand Down
1 change: 1 addition & 0 deletions src/components/wt-indicator/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@
--wt-indicator-error-color: var(--error-color);
--wt-indicator-transfer-color: var(--transfer-color);
--wt-indicator-break-out-color: var(--warning-color);
--wt-indicator-info-color: var(--info-color);
}
6 changes: 5 additions & 1 deletion src/components/wt-indicator/wt-indicator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default {
color: {
type: String,
default: 'secondary',
options: ['primary', 'secondary', 'disabled', 'success', 'error', 'transfer', 'break-out'],
options: ['primary', 'secondary', 'disabled', 'success', 'error', 'transfer', 'break-out', 'info'],
},
text: {
type: [String, Number],
Expand Down Expand Up @@ -98,6 +98,10 @@ export default {
&--break-out {
background: var(--wt-indicator-break-out-color);
}
&--info {
background: var(--wt-indicator-info-color);
}
}
.wt-indicator--size {
Expand Down

0 comments on commit 339d557

Please sign in to comment.