diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e89150316a..8cdbff5d5cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ **Bug fixes** - Reenabled `width` property for `EuiTable` cell components ([#2452](https://github.com/elastic/eui/pull/2452)) +- Fixed `EuiNavDrawer` collapse/expand button height issue + ([#2463](https://github.com/elastic/eui/pull/2463)) ## [`14.6.0`](https://github.com/elastic/eui/tree/v14.6.0) diff --git a/src/components/nav_drawer/_nav_drawer.scss b/src/components/nav_drawer/_nav_drawer.scss index bc47941f0b1..8275724e303 100644 --- a/src/components/nav_drawer/_nav_drawer.scss +++ b/src/components/nav_drawer/_nav_drawer.scss @@ -33,12 +33,12 @@ transition: width $euiAnimSpeedExtraFast; z-index: $euiZHeader + 1; - .navDrawerExpandButton-isExpanded .euiListGroupItem__button { + .euiListGroupItem__button { padding: $euiSizeM $euiSize; } .navDrawerExpandButton-isCollapsed .euiListGroupItem__button { - max-width: $euiSizeXL; + max-width: 100%; } } diff --git a/src/components/nav_drawer/nav_drawer.js b/src/components/nav_drawer/nav_drawer.js index 4c9c54ea840..f1d9a9eb067 100644 --- a/src/components/nav_drawer/nav_drawer.js +++ b/src/components/nav_drawer/nav_drawer.js @@ -229,7 +229,7 @@ export class EuiNavDrawer extends Component { let footerContent; if (showExpandButton) { footerContent = ( - + {/* Put expand button first so it's first in tab order then on toggle starts the tabbing of the items from the top */} {/* TODO: Add a "skip navigation" keyboard only button */} - {modifiedChildren} {footerContent} + {modifiedChildren} {flyoutContent}