Skip to content

Commit

Permalink
Add toast docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jjenzz committed Aug 3, 2021
1 parent 9f4ad1a commit 967cde6
Show file tree
Hide file tree
Showing 3 changed files with 493 additions and 1 deletion.
8 changes: 7 additions & 1 deletion components/PropsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,13 @@ export function PropsTable({
<InfoCircledIcon />
</AccessibleIcon>
</PopoverTrigger>
<PopoverContent side="top">
<PopoverContent
side="top"
onOpenAutoFocus={(event) => {
event.preventDefault();
(event.currentTarget as HTMLElement)?.focus();
}}
>
<Box css={{ py: '$2', px: '$3' }}>
<Text size="2" css={{ lineHeight: '20px' }}>
{description}
Expand Down

0 comments on commit 967cde6

Please sign in to comment.