Skip to content

Commit

Permalink
fix(drawer): fix layout shift (#1965)
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusps authored Sep 23, 2024
2 parents 3281906 + c9f7fcb commit 38016bd
Show file tree
Hide file tree
Showing 6 changed files with 8,508 additions and 15,713 deletions.
2 changes: 1 addition & 1 deletion packages/docs/pages/components/drawer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ The [DrawerPopover](/components/drawer/drawer-popover) has either a `small` or `

<ComponentSummaryGrid>
<ComponentSummary name="modal" />
<ComponentSummary name="toast" />
<ComponentSummary name="page" />
<ComponentSummary name="contextual-help" />
</ComponentSummaryGrid>
10 changes: 10 additions & 0 deletions packages/docs/pages/components/drawer/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"drawer-content": "DrawerContent",
"drawer-dismiss": "DrawerDismiss",
"drawer-footer": "DrawerFooter",
"drawer-header": "DrawerHeader",
"drawer-heading": "DrawerHeading",
"drawer-popover": "DrawerPopover",
"drawer-provider": "DrawerProvider",
"drawer-trigger": "DrawerTrigger"
}
Binary file added packages/docs/public/assets/all-drawer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/shoreline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@
"@react-stately/toggle": "3.7.4",
"@vtex/shoreline-utils": "^1.0.58",
"react-hot-toast": "2.4.1",
"vaul": "0.9.2"
"vaul": "0.9.4"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
--size: var(--size-medium);
}

&[vaul-drawer-direction="right"] {
&[data-vaul-drawer-direction="right"] {
flex-direction: row;
top: 0;
right: 0;
Expand Down
Loading

0 comments on commit 38016bd

Please sign in to comment.