Skip to content

Commit 00162b2

Browse files
Update z-index and height properties in useMenuHeaderStyle hook
- Changed z-index from a static value to a calculated value based on the EUI theme. - Updated height to min-height to ensure proper layout handling. These adjustments enhance the responsiveness and styling of the menu header.
1 parent d1843ce commit 00162b2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/platform/kbn-ui/side-navigation/src/hooks/use_menu_header_style.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ export function useMenuHeaderStyle() {
2424
2525
position: sticky;
2626
top: 0;
27-
z-index: 1;
27+
z-index: calc(${euiTheme.levels.content} + 1);
2828
padding: ${euiTheme.size.base} var(--horizontal-padding) ${euiTheme.size.xs}
2929
var(--horizontal-padding);
3030
margin: 0 1px;
31-
height: var(--secondary-menu-header-height);
31+
min-height: var(--secondary-menu-header-height);
3232
`;
3333
}

0 commit comments

Comments
 (0)