Skip to content

Commit

Permalink
fix(fuselage): Prevent focus state on clicking in Messages (#1288)
Browse files Browse the repository at this point in the history
  • Loading branch information
dougfabris authored Feb 16, 2024
1 parent 2863143 commit 7390c02
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/silver-pans-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/fuselage": patch
---

fix(fuselage): Prevent focus state on clicking in Messages
13 changes: 9 additions & 4 deletions packages/fuselage/src/components/Message/mixins.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@use '../../styles/lengths.scss';
@use '../../styles/colors.scss';
@import '../../styles/mixins/states.scss';
@import '../../styles/mixins/shadows.scss';

@mixin container() {
&-container {
Expand Down Expand Up @@ -37,11 +39,14 @@
}

@mixin focus-state {
border: 1px solid transparent;
border-width: lengths.border-width('default');
border-style: solid;
border-color: transparent;

&:focus {
border: 1px solid colors.stroke(highlight);
@include on-focus-visible {
border-color: colors.stroke(highlight);
border-radius: lengths.border-radius(medium);
box-shadow: 0 0 0 2px colors.stroke(extra-light-highlight);
outline: 0;
@include use-button-focus-shadow(colors.stroke(extra-light-highlight));
}
}

0 comments on commit 7390c02

Please sign in to comment.