Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fuselage-icon-button-badge-press.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rocket.chat/fuselage': patch
---

Fixed the `IconButton` badge jumping from the button's corner toward its center while the button is pressed. The badge now moves with the icon by the same 1px press offset.
4 changes: 2 additions & 2 deletions packages/fuselage/src/components/Button/Button.styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@

display: flex;

transform: translate(30%, -30%);
translate: 30% -30%;

&:dir(rtl) {
transform: translate(-30%, -30%);
translate: -30% -30%;
}
}

Expand Down
Loading