Skip to content

Commit

Permalink
EPMRPP-94914 || Update several colors (#48)
Browse files Browse the repository at this point in the history
* EPMRPP-94915 || Update 2 colors for Button component

* EPMRPP-94917 || Update 3 colors for FieldNumber component

* EPMRPP-94917 || code review fix - 1
  • Loading branch information
maria-hambardzumian authored Sep 17, 2024
1 parent b8a82d8 commit 27e1a2b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/assets/styles/themes/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
--rp-ui-base-error: #dc5959;
--rp-ui-base-error-hover: #f24a4a;
--rp-ui-base-error-pressed: #c54141;
--rp-ui-base-error-focused: #ffb1b1;
--rp-ui-base-error-focused: #00b0d1;

--rp-ui-base-topaz: #00829b;
--rp-ui-base-topaz-hover: #009dbb;
Expand Down
1 change: 1 addition & 0 deletions src/components/button/button.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
color: var(--rp-ui-base-bg-000);
&:hover:not(.disabled) {
opacity: 0.9;
background-color: var(--rp-ui-color-error-hover);
}
&:active:not(.disabled) {
border: 1px solid var(--rp-ui-color-error-pressed);
Expand Down
8 changes: 6 additions & 2 deletions src/components/fieldNumber/fieldNumber.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,14 @@
border-color: var(--rp-ui-base-topaz-focused);
}

&:hover:not(.disabled):not(:focus-within):not(.error.touched),
&.filled:not(:focus-within) {
&:hover:not(.disabled):not(:focus-within):not(.error.touched) {
border-color: var(--rp-ui-base-e-300);
}

&.filled:not(:focus-within) {
border-color: var(--rp-ui-base-e-200);
}

&.error.touched {
border-color: var(--rp-ui-base-error);
}
Expand All @@ -73,6 +76,7 @@
border: none;
text-align: center;
appearance: textfield;
color: var(--rp-ui-base-almost-black);

&:focus {
outline: none;
Expand Down

0 comments on commit 27e1a2b

Please sign in to comment.