Skip to content

Commit

Permalink
fix(react): Select overlay zindex (#152)
Browse files Browse the repository at this point in the history
* fix(react): select content z index

* chore(change): add change
  • Loading branch information
jonambas authored Sep 18, 2023
1 parent 6933858 commit 9555bf4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/healthy-donuts-warn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sweatpants/react': patch
---

Fix Select overlay zindex within drawers
4 changes: 3 additions & 1 deletion packages/react/src/select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ const Select = forwardRef<HTMLButtonElement, SelectProps>((props, userRef) => {
)}
</RadixSelect.Trigger>
<RadixSelect.Portal>
<RadixSelect.Content>
<RadixSelect.Content
className={css({ position: 'relative', zIndex: '2' })}
>
<RadixSelect.Viewport asChild>
<Card kind="elevated" space="tight">
<Stack space="tight">{children}</Stack>
Expand Down

0 comments on commit 9555bf4

Please sign in to comment.