Skip to content

Commit

Permalink
Add events-* classes to the toast component
Browse files Browse the repository at this point in the history
  • Loading branch information
tristen committed Dec 14, 2022
1 parent 73834c5 commit 64baca2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/toast/__snapshots__/toast.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ exports[`Toast render with options renders basic 1`] = `
tabindex="0"
/>
<ol
class="fixed left bottom mb24 w-full flex flex--center-main"
class="fixed left bottom mb24 w-full flex flex--center-main events-none"
tabindex="-1"
>
<li
class="bg-gray-dark round wmax600 w-11/12 flex flex--center-cross row flex--space-between-main py12 pl12 hmin60"
class="bg-gray-dark round wmax600 w-11/12 flex flex--center-cross row flex--space-between-main py12 pl12 hmin60 events-all"
data-radix-collection-item=""
data-state="open"
data-swipe-direction="down"
Expand Down
4 changes: 2 additions & 2 deletions src/components/toast/toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function Toast({
type="foreground"
open={active}
onOpenChange={onExit}
className="bg-gray-dark round wmax600 w-11/12 flex flex--center-cross row flex--space-between-main py12 pl12 hmin60"
className="bg-gray-dark round wmax600 w-11/12 flex flex--center-cross row flex--space-between-main py12 pl12 hmin60 events-all"
>
<ToastPrimitive.Description className="color-gray-lighter txt-truncate w-auto mr12">
{content}
Expand Down Expand Up @@ -61,7 +61,7 @@ export default function Toast({
)}
</span>
</ToastPrimitive.Root>
<ToastPrimitive.Viewport className="fixed left bottom mb24 w-full flex flex--center-main" />
<ToastPrimitive.Viewport className="fixed left bottom mb24 w-full flex flex--center-main events-none" />
</ToastPrimitive.Provider>
);
}
Expand Down

0 comments on commit 64baca2

Please sign in to comment.