We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36a475a commit f7ad555Copy full SHA for f7ad555
packages/react/src/components/presentation/UserDropdown/BaseUserDropdown.tsx
@@ -228,7 +228,12 @@ export const BaseUserDropdown: FC<BaseUserDropdownProps> = ({
228
<div
229
ref={refs.setFloating}
230
className={cx(withVendorCSSClassPrefix('user-dropdown__content'), styles.dropdownContent)}
231
- style={floatingStyles}
+ style={{
232
+ ...floatingStyles,
233
+ // Floating UI doesn't set a z-index by default, so we set a high value to ensure the dropdown appears above other elements.
234
+ // https://floating-ui.com/docs/misc#z-index-stacking
235
+ zIndex: 9999,
236
+ }}
237
{...getFloatingProps()}
238
>
239
<div className={cx(withVendorCSSClassPrefix('user-dropdown__header'), styles.dropdownHeader)}>
0 commit comments