Skip to content

Commit

Permalink
fix(fuselage): MessageToolbar missing opacity on hover (#1363)
Browse files Browse the repository at this point in the history
  • Loading branch information
dougfabris committed May 2, 2024
1 parent 3b6daee commit 3bc0e98
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/proud-queens-yawn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/fuselage": patch
---

fix(fuselage): MessageToolbar missing opacity on hover
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
margin-inline: lengths.margin(20);
padding: lengths.padding(2);

opacity: 0;

border: lengths.border-width(default) solid colors.stroke(extra-light);
border-radius: theme(
'message-toolbar-border-radius',
Expand Down
9 changes: 8 additions & 1 deletion packages/fuselage/src/components/Message/mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,15 @@
opacity: 0;

.rcx-message:hover &,
.rcx-message:has(:focus-visible) &,
.rcx-message:focus-visible & {
opacity: 1;
}

/**
** This is a hack to get focus within only for keyboard.
** :has pseudo class are not stable on some Firefox versions
**/
.rcx-message:has(:focus-visible) & {
opacity: 1;
}
}

0 comments on commit 3bc0e98

Please sign in to comment.