Skip to content

Commit e6f204a

Browse files
refactor(clerk-js): Improve NavButton contrast (#6351)
1 parent f0d7a01 commit e6f204a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.changeset/wicked-badgers-know.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/clerk-js': patch
3+
---
4+
5+
Improve the contrast of nav bar buttons within profile components.

packages/clerk-js/src/ui/elements/Navbar.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,14 +279,13 @@ const NavButton = (props: NavButtonProps) => {
279279
gap: t.space.$3,
280280
justifyContent: 'flex-start',
281281
backgroundColor: isActive ? t.colors.$neutralAlpha100 : undefined,
282-
color: isActive ? t.colors.$primary500 : t.colors.$neutralAlpha600,
282+
color: isActive ? t.colors.$primary500 : t.colors.$colorMutedForeground,
283283
'&:hover': {
284284
backgroundColor: isActive ? undefined : t.colors.$neutralAlpha25,
285285
},
286286
'&:focus': {
287287
backgroundColor: isActive ? undefined : t.colors.$neutralAlpha50,
288288
},
289-
opacity: isActive ? 1 : 0.6,
290289
}),
291290
sx,
292291
]}

0 commit comments

Comments
 (0)