Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc small fixes related to nav drawer #1448

Merged
merged 1 commit into from
Jan 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## [`master`](https://github.com/elastic/eui/tree/master)

- Added Inter UI to the font family stack ([#1402](https://github.com/elastic/eui/pull/1402))
- Changed padding on `EuiHeaderLogo` and updated `EuiNavDrawer` example ([#1448](https://github.com/elastic/eui/pull/1448))

**Bug fixes**

Expand All @@ -9,6 +10,7 @@

## [`6.4.0`](https://github.com/elastic/eui/tree/v6.4.0)

- Added `EuiNavDrawer` side nav component ([#1427](https://github.com/elastic/eui/pull/1427))
- Added `inputRef` prop to `EuiComboBox` ([#1433](https://github.com/elastic/eui/pull/1433))
- Added custom date string formatting for series charts crosshair overlay ([#1429](https://github.com/elastic/eui/pull/1429))
- Added new icons for `symlink` and `submodule` ([#1439](https://github.com/elastic/eui/pull/1439))
Expand Down
12 changes: 6 additions & 6 deletions src-docs/src/views/nav_drawer/nav_drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default class extends Component {
navFlyoutContent: [],
mobileIsHidden: true,
showScrollbar: false,
outsideClickDisaled: true,
outsideClickDisabled: true,
isManagingFocus: false,
};

Expand Down Expand Up @@ -477,9 +477,9 @@ export default class extends Component {

setTimeout(() => {
this.setState({
outsideClickDisaled: this.state.mobileIsHidden ? true : false,
outsideClickDisabled: this.state.mobileIsHidden ? true : false,
});
}, 150);
}, 350);
};

expandDrawer = () => {
Expand Down Expand Up @@ -516,7 +516,7 @@ export default class extends Component {
flyoutIsCollapsed: true,
mobileIsHidden: true,
showScrollbar: false,
outsideClickDisaled: true,
outsideClickDisabled: true,
});
}, 350);

Expand Down Expand Up @@ -576,7 +576,7 @@ export default class extends Component {
navFlyoutContent,
mobileIsHidden,
showScrollbar,
outsideClickDisaled,
outsideClickDisabled,
} = this.state;

return (
Expand Down Expand Up @@ -605,7 +605,7 @@ export default class extends Component {
</EuiHeader>
<EuiOutsideClickDetector
onOutsideClick={() => this.collapseDrawer()}
isDisabled={outsideClickDisaled}
isDisabled={outsideClickDisabled}
>
<EuiNavDrawer
isCollapsed={isCollapsed}
Expand Down
2 changes: 1 addition & 1 deletion src/components/header/_header_logo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
position: relative;
height: $euiHeaderChildSize;
line-height: $euiHeaderChildSize;
padding: 0 $euiSize;
padding: 0 $euiSizeM;
display: inline-block;
vertical-align: middle;
white-space: nowrap;
Expand Down