Skip to content

Commit

Permalink
Allow panelled to be true
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Aug 7, 2023
1 parent a13a8f8 commit 4574f4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ exports[`EuiPageTemplate _EuiPageInnerProps renders as panelled 1`] = `
style="min-block-size: max(460px, 100vh); padding-block-start: 0;"
>
<div
class="emotion-euiPageInner"
class="emotion-euiPageInner-panelled"
id="EuiPageTemplateInner_generated-id"
/>
</div>
Expand Down
3 changes: 1 addition & 2 deletions src/components/page_template/page_template.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,7 @@ export const _EuiPageTemplate: FunctionComponent<EuiPageTemplateProps> = ({
parent: `#${pageInnerId}`,
});

const innerPanelled = () =>
panelled === false ? false : Boolean(sidebar.length > 0);
const innerPanelled = () => panelled ?? Boolean(sidebar.length > 0);

const innerBordered = () =>
contentBorder !== undefined ? contentBorder : Boolean(sidebar.length > 0);
Expand Down

0 comments on commit 4574f4f

Please sign in to comment.