Skip to content

Commit

Permalink
chore: fix disabled state (#1834)
Browse files Browse the repository at this point in the history
  • Loading branch information
NotNestor authored Nov 21, 2024
1 parent 9a45409 commit 15dffd3
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 10 deletions.
2 changes: 1 addition & 1 deletion web-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@momentum-ui/web-components",
"version": "2.15.1",
"version": "2.15.2",
"author": "Yana Harris",
"license": "MIT",
"repository": "https://github.com/momentum-design/momentum-ui.git",
Expand Down
15 changes: 8 additions & 7 deletions web-components/src/components/combobox/scss/combobox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,28 +60,29 @@
.group:active {
outline: none;
box-shadow: none;
border-color: var(--combobox-disabled-bg-color) !important;
background-color: transparent;
border-color: var(--combobox-disabled-border-color) !important;
background-color: var(--combobox-disabled-bg-color);

md-icon {
color: var(--md-primary-text-color);
fill: var(--md-primary-text-color);
opacity: 1;
color: var(--md-disabled-text-color);
fill: var(--md-disabled-text-color);
}

.md-combobox-right-arrow {
border-color: var(--combobox-disabled-bg-color);
border-color: var(--combobox-disabled-border-color);
}
}

.md-combobox__multiwrap {
input {
color: var(--combobox-disabled-bg-color);
color: var(--md-disabled-text-color);
}

input::placeholder,
input::-webkit-input-placeholder {
opacity: 1;
color: var(--combobox-disabled-bg-color);
color: var(--md-disabled-text-color);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ const combobox = {
"bg-color": {
light: colors.gray[10].name,
dark: colors.gray[90].name
},
"border-color": {
light: colors.gray[40].name,
dark: colors.gray[80].name
}
},
invalid: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ const combobox = {
"bg-color": {
light: colors.gray[10].name,
dark: colors.gray[80].name
},
"border-color": {
light: colors.gray[10].name,
dark: colors.gray[90].name
}
},
invalid: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const combobox = {
common: "$mds-color-theme-outline-theme-normal"
},
"new-border-color": {
common: "mds-color-theme-outline-input-active"
common: "$mds-color-theme-outline-input-active"
},
"bg-color": {
common: "$mds-color-theme-background-primary-active"
Expand All @@ -38,6 +38,9 @@ const combobox = {
disabled: {
"bg-color": {
common: "$mds-color-theme-background-primary-disabled"
},
"border-color": {
common: "$mds-color-theme-outline-primary-disabled"
}
},
invalid: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ const dropdown = {
prefix: "md",
component: "dropdown",
"bg-color": {
light: colors.white[100].name,
dark: colors.gray[100].name,
hover: {
light: colors.gray[10].name,
dark: colors.gray[80].name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@
:host(.help-text.disabled.newMomentum),
:host(.help-text-checkbox.disabled.newMomentum),
:host(.help-text-radio.disabled.newMomentum) {
color: var(--input-default-new-disabled-color) !important;
color: var(--help-text-default-color) !important;
}

0 comments on commit 15dffd3

Please sign in to comment.