Skip to content

Commit

Permalink
fix(fuselage): improve focus state color (#1173)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliajforesti authored Sep 22, 2023
1 parent 8fb4c81 commit dfe3676
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/hot-bears-shout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/fuselage": patch
---

fix(fuselage): improve focus state color
1 change: 1 addition & 0 deletions packages/fuselage/src/styles/colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ $-badge-backgrounds: (

$shadow-colors: (
highlight: primary(200),
extra-light-highlight: stroke(extra-light-highlight),
danger: danger(100),
elevation-1: neutral(800, 0.1),
elevation-2x: neutral(800, 0.08),
Expand Down
6 changes: 3 additions & 3 deletions packages/fuselage/src/styles/primitives/selection-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
%selection-button__fake--empty--focused {
border-color: $button-empty-focus-border-color;
background-color: $button-empty-focus-background-color;
@include use-focus-shadow($button-empty-focus-shadow-color);
@include use-focus-shadow($input-colors-focus-shadow-color);
}

%selection-button__fake--empty--disabled {
Expand Down Expand Up @@ -63,7 +63,7 @@
%selection-button__fake--off--focused {
border-color: $button-off-focus-border-color;
background-color: $button-off-focus-background-color;
@include use-focus-shadow($button-off-focus-shadow-color);
@include use-focus-shadow($input-colors-focus-shadow-color);
}

%selection-button__fake--off--disabled {
Expand Down Expand Up @@ -93,7 +93,7 @@
%selection-button__fake--primary--focused {
border-color: $button-primary-focus-border-color;
background-color: $button-primary-focus-background-color;
@include use-focus-shadow($button-primary-focus-shadow-color);
@include use-focus-shadow($input-colors-focus-shadow-color);
}

%selection-button__fake--primary--disabled {
Expand Down
2 changes: 1 addition & 1 deletion packages/fuselage/src/styles/variables/input-colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ $input-colors-focus-border-color: theme(
);
$input-colors-focus-shadow-color: theme(
'input-colors-focus-shadow-color',
colors.shadow(highlight)
colors.shadow(extra-light-highlight)
);

$input-colors-focus-icon-color: theme(
Expand Down

0 comments on commit dfe3676

Please sign in to comment.