-
Notifications
You must be signed in to change notification settings - Fork 842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Page Template Feature] Updating EuiPageHeader to use the same paradigm as EuiPageSection #5857
[Page Template Feature] Updating EuiPageHeader to use the same paradigm as EuiPageSection #5857
Conversation
same `bottomBorder`, `restrictWidth` and `paddingSize` props as EuiPageSection… (needs clenaup)
Still needs cleanup and shimmed a breakpoint mixin, not great
…ge_now/page_header
Preview documentation changes for this PR: https://eui.elastic.co/pr_5857/ |
Finally..... ready for review... |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5857/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🎉
Tested in Chrome, Firefox, Edge, and Safari.
…page_now/page_header # Conflicts: # src/components/page/page_header/__snapshots__/page_header.test.tsx.snap # src/components/page/page_header/__snapshots__/page_header_content.test.tsx.snap # src/global_styling/mixins/_padding.ts # src/global_styling/mixins/index.ts
Preview documentation changes for this PR: https://eui.elastic.co/pr_5857/ |
Also converted styles to Emotion.
Primarily EuiPageHeader is just a pass-through now to EuiPageHeaderContent, even just plain
children
. So EuiPageHeaderContent now renders everything all of the time. EuiPageHeader acts as just a wrapper for controlling therestrictWidth
,paddingSize
, andbottomBorder
props just like EuiPageSection.The best docs example to test how this works in conjunction with EuiPageSection is: https://eui.elastic.co/pr_5857/#/layout/page-components#page-sections
Additions:
EuiPageHeader
extended
as an option ofbottomBorder
bottomBorder
in conjunction with Tabs, it's all handled programaticallyEuiPageHeaderContent
paddingSize
&restrictWidth
but really only for EuiPageHeader to control thembreadcrumbs
not showing up whenalignItems
was nottop
Todo in a follow up
main
useEuiBreakpoint
mixin, but it needs to be fleshed out moreChecklist
[ ] Checked Code Sandbox works for any docs examples[ ] Checked for breaking changes and labeled appropriately[ ] Checked for accessibility including keyboard-only and screenreader modes[ ] Updated the Figma library counterpart