Skip to content

Commit

Permalink
fix(fuselage): MessageToolbarWrapper visibility (#1310)
Browse files Browse the repository at this point in the history
  • Loading branch information
dougfabris authored Mar 6, 2024
1 parent aff73a3 commit 5641746
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/early-cycles-serve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/fuselage": patch
---

fix(fuselage): `MessageToolbarWrapper` visibility
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
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 All @@ -19,17 +21,26 @@
&__wrapper {
display: none;

@at-root .rcx-message:hover &,
&--visible {
.rcx-message:hover &,
.rcx-message:focus-within & {
display: inline-block;
}

@at-root .rcx-message:focus-within &,
&--visible {
&--visible {
display: inline-block;

.rcx-message-toolbar {
opacity: 1;
}
}
}

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

@at-root .rcx-message & {
position: absolute;
z-index: 10;
Expand Down

0 comments on commit 5641746

Please sign in to comment.