Skip to content

Commit 5b5e994

Browse files
authored
fix: prevent menu items from overlapping in firefox (#7754)
* fix: prevent menu items from overlapping in firefox * fix overlapping menu items in picker and combobox
1 parent d2824d5 commit 5b5e994

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/@react-spectrum/s2/src/Menu.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ export let menu = style({
115115
isPopover: 8
116116
},
117117
fontFamily: 'sans',
118-
fontSize: 'control'
118+
fontSize: 'control',
119+
gridAutoRows: 'min-content'
119120
}, getAllowedOverrides());
120121

121122
export let section = style({

packages/@react-spectrum/s2/src/Picker.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ export let menu = style({
190190
overflow: 'auto',
191191
padding: 8,
192192
fontFamily: 'sans',
193-
fontSize: 'control'
193+
fontSize: 'control',
194+
gridAutoRows: 'min-content'
194195
});
195196

196197
const invalidBorder = style({

0 commit comments

Comments
 (0)