diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/__snapshots__/collapsible_nav.test.tsx.snap b/packages/core/chrome/core-chrome-browser-internal/src/ui/header/__snapshots__/collapsible_nav.test.tsx.snap index 38c5a7fdf4854..d32e7d27d6f16 100644 --- a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/__snapshots__/collapsible_nav.test.tsx.snap +++ b/packages/core/chrome/core-chrome-browser-internal/src/ui/header/__snapshots__/collapsible_nav.test.tsx.snap @@ -216,7 +216,7 @@ Array [ class="euiHorizontalRule euiHorizontalRule--full emotion-euiHorizontalRule-full" />
} + className="kbnCollapsibleNav" data-test-subj="collapsibleNav" id="collapsibe-nav" isOpen={false} @@ -1048,6 +1049,7 @@ exports[`CollapsibleNav renders the default nav 2`] = ` } + className="kbnCollapsibleNav" data-test-subj="collapsibleNav" id="collapsibe-nav" isOpen={false} diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/collapsible_nav.scss b/packages/core/chrome/core-chrome-browser-internal/src/ui/header/collapsible_nav.scss index 5f84863ad7309..a121ac4c02b25 100644 --- a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/collapsible_nav.scss +++ b/packages/core/chrome/core-chrome-browser-internal/src/ui/header/collapsible_nav.scss @@ -1,9 +1,29 @@ +$screenHeightBreakpoint: $euiSize * 15; + +.kbnCollapsibleNav { + @media (max-height: $screenHeightBreakpoint) { + overflow-y: auto; + } +} + .kbnCollapsibleNav__recentsListGroup { @include euiYScroll; max-height: $euiSize * 10; margin-right: -$euiSizeS; } +.kbnCollapsibleNav__solutions { + @include euiYScroll; + + /** + * Allows the solutions nav group to be viewed on + * very small screen sizes and when the browser Zoom is high + */ + @media (max-height: $screenHeightBreakpoint) { + flex: 1 0 auto; + } +} + /** * 1. Increase the hit area of the link (anchor) * 2. Only show the text underline when hovering on the text/anchor portion diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/collapsible_nav.tsx b/packages/core/chrome/core-chrome-browser-internal/src/ui/header/collapsible_nav.tsx index 2d9d88d9a461b..886ae8599c806 100644 --- a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/collapsible_nav.tsx +++ b/packages/core/chrome/core-chrome-browser-internal/src/ui/header/collapsible_nav.tsx @@ -161,6 +161,7 @@ export function CollapsibleNav({ button={button} ownFocus={false} size={248} + className="kbnCollapsibleNav" > {customNavLink && ( <> @@ -280,7 +281,7 @@ export function CollapsibleNav({ - + {/* Kibana, Observability, Security, and Management sections */} {orderedCategories.map((categoryName) => { const category = categoryDictionary[categoryName]!;