Skip to content

Commit

Permalink
style(pageLayout): issues/391 remove gray padding (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
zanewoodfin authored and cdcabrera committed Sep 4, 2020
1 parent 927743c commit 6add46c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,14 @@ exports[`Authentication Component should render a non-connected component error:
</PageHeader>
<PageSection
className="curiosity"
padding={
Object {
"default": "noPadding",
}
}
>
<section
className="pf-c-page__main-section curiosity"
className="pf-c-page__main-section pf-m-no-padding curiosity"
>
<PageSection
key=".1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ exports[`PageLayout Component should render a basic component: basic 1`] = `
<PageLayout>
<PageSection
className="curiosity"
padding={
Object {
"default": "noPadding",
}
}
>
<section
className="pf-c-page__main-section curiosity"
className="pf-c-page__main-section pf-m-no-padding curiosity"
>
<span
className="test"
Expand Down Expand Up @@ -56,9 +61,14 @@ exports[`PageLayout Component should render header and section children: multipl
</PageHeader>
<PageSection
className="curiosity"
padding={
Object {
"default": "noPadding",
}
}
>
<section
className="pf-c-page__main-section curiosity"
className="pf-c-page__main-section pf-m-no-padding curiosity"
>
<PageSection
key=".0"
Expand Down
2 changes: 1 addition & 1 deletion src/components/pageLayout/pageLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const PageLayout = ({ children }) => (
<React.Fragment>
{React.Children.toArray(children).filter(child => React.isValidElement(child) && child.type === PageHeader)}
{React.Children.toArray(children).filter(child => React.isValidElement(child) && child.type === PageToolbar)}
<Main className="curiosity">
<Main padding={{ default: 'noPadding' }} className="curiosity">
{React.Children.toArray(children).filter(child => child.type !== PageHeader && child.type !== PageToolbar)}
</Main>
</React.Fragment>
Expand Down
1 change: 1 addition & 0 deletions src/styles/_page-layout.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.curiosity {
background-color: var(--pf-global--BackgroundColor--100);
min-width: 320px;
}

0 comments on commit 6add46c

Please sign in to comment.