Skip to content

Commit

Permalink
[Toast] Allow children in Viewport types for asChild composition (
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitgrelard authored and luisorbaiceta committed Jul 21, 2022
1 parent e467b42 commit 5e6493a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .yarn/versions/3abef429.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
releases:
"@radix-ui/react-toast": patch

declined:
- primitives
2 changes: 1 addition & 1 deletion packages/react/toast/src/Toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const VIEWPORT_RESUME = 'toast.viewportResume';

type ToastViewportElement = React.ElementRef<typeof Primitive.ol>;
type PrimitiveOrderedListProps = Radix.ComponentPropsWithoutRef<typeof Primitive.ol>;
interface ToastViewportProps extends Omit<PrimitiveOrderedListProps, 'children'> {
interface ToastViewportProps extends PrimitiveOrderedListProps {
/**
* The keys to use as the keyboard shortcut that will move focus to the toast viewport.
* @defaultValue ['F8']
Expand Down

0 comments on commit 5e6493a

Please sign in to comment.