Skip to content
Merged
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/stupid-gifts-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/clerk-js': patch
---

Fixes issue in Safari where navigating between profile tabs caused the navbar icons to shift unexpectedly.
6 changes: 5 additions & 1 deletion packages/clerk-js/src/ui/elements/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,11 @@ const NavButton = (props: NavButtonProps) => {
elementDescriptor={iconElementDescriptor}
elementId={iconElementId}
icon={icon}
sx={{ opacity: isActive ? 1 : 0.7 }}
sx={{
opacity: isActive ? 1 : 0.7,
// Fixes a bug in Safari where the icon shifts when navigating between routes.
transform: 'translateZ(0)',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a comment, I don't think it will be easy to understand why transform is used.

}}
/>
{children}
</Button>
Expand Down