Skip to content

Commit

Permalink
icon min-width, ie fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ryankeairns committed Jan 23, 2019
1 parent 18ae98d commit 2b23df3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
6 changes: 4 additions & 2 deletions src-docs/src/views/nav_drawer/nav_drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -522,8 +522,10 @@ export default class extends Component {
}, 350);

// Scrolls the menu and flyout back to top when the nav drawer collapses
document.getElementById('navDrawerMenu').scroll(0, 0);
document.getElementById('navDrawerFlyout').scroll(0, 0);
setTimeout(() => {
document.getElementById('navDrawerMenu').scrollTop = 0;
document.getElementById('navDrawerFlyout').scrollTop = 0;
}, 300);
};

focusOut = () => {
Expand Down
6 changes: 1 addition & 5 deletions src/components/list_group/_list_group_item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
.euiListGroupItem__icon {
flex-grow: 0;
margin-right: $euiSizeM;
min-width: $euiSize;
flex-shrink: 0;
}

.euiListGroupItem--xSmall {
Expand All @@ -101,10 +101,6 @@
.euiListGroupItem__label {
white-space: initial;
}

.euiListGroupItem__icon {
min-width: $euiSize;
}
}

// Layout alts from euiListGroup
Expand Down
6 changes: 6 additions & 0 deletions src/components/nav_drawer/_nav_drawer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
transition: width $euiAnimSpeedFast $euiAnimSlightResistance;
transition-delay: $euiNavDrawerContractingDelay;

&.euiNavDrawer-isCollapsed {
.euiListGroupItem-hasExtraAction .euiListGroupItem__button {
max-width: 100%;
}
}

&.euiNavDrawer-isExpanded {
width: $euiNavDrawerWidthExpanded;
transition-delay: $euiNavDrawerExpandingDelay;
Expand Down

0 comments on commit 2b23df3

Please sign in to comment.