Skip to content
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

Fix EuiBottomBar in serverless #166840

Merged
merged 12 commits into from
Oct 4, 2023
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const ProjectNavigation: React.FC = ({ children }) => {

return (
<EuiCollapsibleNavBeta
data-test-subj="projectLayoutSideNav"
initialIsCollapsed={isCollapsed}
onCollapseToggle={onCollapseToggle}
css={isCollapsed ? { display: 'none;' } : {}}
Expand Down
5 changes: 5 additions & 0 deletions src/core/public/styles/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
margin-left: 320px; // Hard-coded for now -- @cchaos
}

// Add support for serverless nabbar
.euiBody--hasFlyout .euiBottomBar {
margin-left: var(--euiCollapsibleNavOffset, 0);
}

// Temporary fix for EuiPageHeader with a bottom border but no tabs or padding
// Will fix in EUI -- @cchaos
.euiPageHeader--bottomBorder:not(.euiPageHeader--tabsAtBottom):not([class*='euiPageHeader--padding']) {
Expand Down