Skip to content

Commit 8acd697

Browse files
fix(mosaic): strip native button styling from switcher rows (#10466)
1 parent 4ce996f commit 8acd697

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/mosaic': patch
3+
---
4+
5+
Fix menu rows in `<UserButton />` and `<OrganizationSwitcher />` showing the browser's default button border and background on pages without a CSS reset.

‎packages/mosaic/src/features/switcher/switcher-item.styles.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ export const styles = stylex.create({
3838
':hover:not(:disabled, [aria-disabled="true"])': colorVars['--cl-color-foreground'],
3939
},
4040
},
41+
borderStyle: 'none',
42+
appearance: 'none',
4143
backgroundColor: {
42-
default: null,
44+
default: 'transparent',
4345
':active:not(:disabled, [aria-disabled="true"])': colorVars['--cl-color-neutral-alpha-200'],
4446
'@media (hover: hover)': {
4547
':hover:not(:disabled, [aria-disabled="true"])': colorVars['--cl-color-neutral-alpha-100'],

0 commit comments

Comments
 (0)