Skip to content

Commit

Permalink
EPMRPP-96191 || Adjust clear icon color in TextField component
Browse files Browse the repository at this point in the history
  • Loading branch information
maria-hambardzumian committed Oct 14, 2024
1 parent 66101d6 commit 4e5f1d7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/assets/styles/themes/dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
--rp-ui-color-field-opened: var(--rp-ui-base-e-200);
--rp-ui-color-field-placeholder: var(--rp-ui-base-dark-e-200);
--rp-ui-color-field-placeholder-3: var(--rp-ui-base-dark-e-200);
--rp-ui-color-field-icon: var(--rp-ui-base-dark-e-50);

--rp-ui-color-radio-checked: var(--rp-ui-base-dark-topaz-main);

Expand Down
1 change: 1 addition & 0 deletions src/assets/styles/themes/light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
--rp-ui-color-field-opened: var(--rp-ui-base-topaz-pressed);
--rp-ui-color-field-placeholder: var(--rp-ui-base-almost-black);
--rp-ui-color-field-placeholder-3: var(--rp-ui-base-e-300);
--rp-ui-color-field-icon: var(--rp-ui-base-e-300);

--rp-ui-color-radio-checked: var(--rp-ui-base-topaz-pressed);

Expand Down
8 changes: 4 additions & 4 deletions src/components/fieldText/fieldText.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -179,22 +179,22 @@
font: inherit;
outline: inherit;
cursor: pointer;
@include fill-svg-path(var(--rp-ui-color-bg-2));
@include fill-svg-path(var(--rp-ui-color-field-icon));

&.disabled {
pointer-events: none;
}

&:hover {
@include fill-svg(var(--rp-ui-base-e-400));
@include fill-svg-path(var(--rp-ui-color-field-hover-2));
}

&:focus {
@include fill-svg(var(--rp-ui-color-primary-focused));
@include fill-svg-path(var(--rp-ui-color-primary-focused));
}

&:active {
@include fill-svg(var(--rp-ui-color-primary-pressed));
@include fill-svg-path(var(--rp-ui-color-primary-pressed));
}
}

Expand Down

0 comments on commit 4e5f1d7

Please sign in to comment.