Skip to content

Commit eb6cb09

Browse files
fix(mosaic): keep combobox hover across the gap between options (#10760)
1 parent 24a82a1 commit eb6cb09

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

‎.changeset/mosaic-combobox-gap.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

‎packages/mosaic/src/components/combobox/combobox.styles.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,14 @@ export const styles = stylex.create({
104104
},
105105
paddingInlineEnd: space['1.5'],
106106
paddingInlineStart: space['1.5'],
107+
position: 'relative',
107108
height: space['8'],
109+
'::before': {
110+
insetBlock: `calc(-1 * ${space['0.5']})`,
111+
insetInline: `calc(-1 * ${space['0.5']})`,
112+
content: '""',
113+
position: 'absolute',
114+
},
108115
},
109116
empty: {
110117
paddingBlock: space['6'],

0 commit comments

Comments
 (0)