Skip to content

Commit

Permalink
Merge branch 'main' into renovate/react-monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
jonambas authored Sep 19, 2023
2 parents 40edf34 + 7ba9923 commit b960fc1
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @sweatpants/react

## 0.7.1

### Patch Changes

- 9555bf4: Fix Select overlay zindex within drawers

## 0.7.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sweatpants/react",
"version": "0.7.0",
"version": "0.7.1",
"description": "",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
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
9 changes: 5 additions & 4 deletions packages/react/src/text-field/TextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ const inputStyles = cva({
background: 'transparent',
fontSize: '3',
paddingX: '3',
transition: '0.15s',
transitionDuration: '0.15s',
transitionProperty: 'background, border',
outline: 'none',
color: 'gray12',
'&:hover:not(:focus)': {
Expand Down Expand Up @@ -116,8 +117,8 @@ const TextField = forwardRef<HTMLInputElement, TextFieldProps>(

useEffect(() => {
const styles: HTMLAttributes<'input'>['style'] = {
paddingLeft: undefined,
paddingRight: undefined
paddingLeft: prefix ? `calc(1rem + 1ch)` : undefined,
paddingRight: suffix ? `calc(1rem + 1ch)` : undefined
};

if (prefixRef.current) {
Expand All @@ -129,7 +130,7 @@ const TextField = forwardRef<HTMLInputElement, TextFieldProps>(
}

setPadding(styles);
}, [prefixRef, suffixRef]);
}, [prefix, suffix, prefixRef, suffixRef]);

return (
<div className={containerStyles}>
Expand Down

0 comments on commit b960fc1

Please sign in to comment.