Skip to content

Commit

Permalink
fix(react): fix trigger asChild, Toast borders (#279)
Browse files Browse the repository at this point in the history
* fix(react): fix trigger asChild, Toast borders

* chore(change): add change
  • Loading branch information
jonambas authored Jun 1, 2024
1 parent ff02f53 commit 1ce6b41
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/tough-readers-swim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sweatpants/react': patch
---

Fix DateField trigger polymorphism, fix Toast border colors
2 changes: 1 addition & 1 deletion packages/react/src/date-field/DateField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const DateField = forwardRef<HTMLInputElement, DateFieldProps>(

return (
<Popover.Root open={open} onOpenChange={setOpen}>
<Popover.Trigger>
<Popover.Trigger asChild>
<TextField
align={align}
autoComplete="off"
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/toast/Toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const styles = cva({
neutral: {
bg: { base: 'gray12!', _dark: 'white!' },
color: 'gray1',
borderColor: { base: 'gray12', _dark: 'white' },
borderColor: { base: 'gray12!', _dark: 'white' },
boxShadow: 'md',
'& button': {
color: 'gray8!',
Expand Down

0 comments on commit 1ce6b41

Please sign in to comment.