Skip to content

Commit

Permalink
fix(react): fix Select z-index, adjust Button font size
Browse files Browse the repository at this point in the history
  • Loading branch information
jonambas committed Nov 4, 2023
1 parent ec22800 commit da27422
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/soft-hotels-bake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sweatpants/react': patch
---

Fix Select content zindex, adjust sm Button font size
2 changes: 1 addition & 1 deletion packages/react/src/button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const styles = cva({
lineHeight: 'calc(2.5rem - 2px)'
},
md: { fontSize: '4', paddingX: '4', lineHeight: 'calc(2rem - 2px)' },
sm: { fontSize: '2', paddingX: '4', lineHeight: 'calc(1.75rem - 2px)' },
sm: { fontSize: '3', paddingX: '4', lineHeight: 'calc(1.75rem - 2px)' },
xs: { fontSize: '2', paddingX: '3', lineHeight: 'calc(1.25rem - 2px)' }
},
disabled: {
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const Select = forwardRef<HTMLButtonElement, SelectProps>((props, userRef) => {
</RadixSelect.Trigger>
<RadixSelect.Portal>
<RadixSelect.Content
className={css({ position: 'relative', zIndex: '2' })}
className={css({ position: 'relative', zIndex: '20' })}
>
<RadixSelect.Viewport asChild>
<Card kind="elevated" space="tight">
Expand Down

0 comments on commit da27422

Please sign in to comment.