Skip to content

Commit

Permalink
Tweak solution nav to feedback (elastic#104666) (elastic#105305)
Browse files Browse the repository at this point in the history
Makes some tweaks to the Solution Side nav (and corresponding global nav) due to feedback since merged.
  • Loading branch information
snide committed Jul 13, 2021
1 parent b7a8c1e commit 1f987cd
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 19 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/core/public/chrome/ui/header/collapsible_nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export function CollapsibleNav({
onClose={closeNav}
button={button}
ownFocus={false}
size={240}
size={248}
>
{customNavLink && (
<Fragment>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.kbnPageTemplate__pageSideBar {
overflow: hidden;
// Temporary hack till the sizing is changed directly in EUI
min-width: 248px;

@include euiCanAnimate {
transition: min-width $euiAnimSpeedFast $euiAnimSlightResistance;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,8 @@ $euiSideNavEmphasizedBackgroundColor: transparentize($euiColorLightShade, .7);
.kbnPageTemplateSolutionNav {
@include euiYScroll;

@include euiBreakpoint('m') {
width: $euiPageSidebarMinWidth + ($euiSizeL * 2);
padding: $euiSizeL;
}

@include euiBreakpoint('l', 'xl') {
width: $euiPageSidebarMinWidth + ($euiSizeL * 2);
@include euiBreakpoint('m' ,'l', 'xl') {
width: 248px;
padding: $euiSizeL;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export const KibanaPageTemplateSolutionNav: FunctionComponent<KibanaPageTemplate
outsideClickCloses
onClose={() => setIsSideNavOpenOnMobile(false)}
side="left"
size={240}
size={248}
closeButtonPosition="outside"
>
{sideNav}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.kbnPageTemplateSolutionNavCollapseButton {
position: absolute;
opacity: 0;
left: 240px - $euiSize;
top: $euiSize;
left: 248px - $euiSize;
top: $euiSizeL;
z-index: 2;

@include euiCanAnimate {
Expand All @@ -18,11 +18,11 @@
&:hover,
&:focus {
opacity: 1;
left: 240px - $euiSizeL;
left: 248px - $euiSizeL;
}

.kbnPageTemplate__pageSideBar:hover & {
transition-delay: $euiAnimSpeedSlow;
transition-delay: $euiAnimSpeedSlow * 2;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ export const KibanaPageTemplateSolutionNavCollapseButton: FunctionComponent<Kiba
className={classes}
iconType={isCollapsed ? 'menuRight' : 'menuLeft'}
size="s"
display="fill"
color="text"
aria-label={isCollapsed ? openLabel : collapseLabel}
title={isCollapsed ? openLabel : collapseLabel}
Expand Down

0 comments on commit 1f987cd

Please sign in to comment.