Skip to content

Commit 2acd034

Browse files
committed
use suggestion to remove clearFix empty div
1 parent 1b2423c commit 2acd034

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

packages/core/chrome/core-chrome-browser-internal/src/ui/project/app_menu.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ export const AppMenuBar = ({ isOpen, headerActionMenuMounter }: AppMenuBarProps)
3636
>
3737
<HeaderActionMenu mounter={headerActionMenuMounter} />
3838
</div>
39-
<div className="header__actionMenu__clearFix" />
4039
</EuiThemeProvider>
4140
);
4241
};

packages/core/chrome/core-chrome-browser-internal/src/ui/project/header.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,13 @@ export const ProjectHeader = ({
189189
<SkipToMainContent />
190190

191191
<HeaderTopBanner headerBanner$={observables.headerBanner$} />
192-
<header data-test-subj="kibanaProjectHeader">
192+
<header
193+
data-test-subj="kibanaProjectHeader"
194+
css={css`
195+
/* FIXME use a variable for the app bar height */
196+
margin-bottom: ${headerActionMenuMounter.mount ? 48 : 0}px;
197+
`}
198+
>
193199
<div id="globalHeaderBars" data-test-subj="headerGlobalNav" className="header__bars">
194200
<EuiHeader position="fixed" className="header__firstBar">
195201
<EuiHeaderSection grow={false}>

src/core/public/styles/chrome/_project.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,4 @@
88
/* use a high z-index since this component is part of the header */
99
z-index: $euiZHeader;
1010
}
11-
12-
.header__actionMenu__clearFix {
13-
/* make other elements to flow around the fixed menu bar rather than behind it */
14-
margin-top: $euiHeaderHeightCompensation;
15-
}
1611
}

0 commit comments

Comments
 (0)