Skip to content

Commit

Permalink
fix(Drawer): noPadding should affect only wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
mainframev committed Dec 14, 2023
1 parent 5b865ae commit 846a7bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/orbit-components/src/Drawer/Drawer.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ export const SideNavigation = () => {
const dataTest = text("dataTest", "test");
const width = text("width", "320px");
const fixedHeader = boolean("fixedHeader", false);
const noPadding = boolean("noPadding", false);

return (
<Drawer
noPadding={noPadding}
dataTest={dataTest}
width={width}
shown={shown}
Expand Down
2 changes: 1 addition & 1 deletion packages/orbit-components/src/Drawer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const Drawer = ({
fixedHeader && "z-sticky sticky top-0",
onlyIcon ? "justify-end" : "justify-between",
bordered && "border-cloud-normal border-x-0 border-b border-t-0 border-solid",
!noPadding && "px-md lm:ps-xl lm:pe-lg py-0",
"px-md lm:ps-xl lm:pe-lg py-0",
)}
>
{title && <Heading type="title2">{title}</Heading>}
Expand Down

0 comments on commit 846a7bd

Please sign in to comment.