Skip to content

Commit

Permalink
fix(sidenav): make sidenav open/close via keyboard
Browse files Browse the repository at this point in the history
Address review comment
  • Loading branch information
Matthew Chirgwin authored and Matthew Chirgwin committed Aug 19, 2019
1 parent 0d177f7 commit 0a034e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/components/UIShell/SideNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ const SideNav = React.forwardRef(function SideNav(props, ref) {
{...accessibilityLabel}
onFocus={event => handleToggle(event, true)}
onBlur={event => handleToggle(event, false)}
onMouseEnter={() => handleToggle({}, true)}
onMouseLeave={() => handleToggle({}, false)}>
onMouseEnter={() => handleToggle(true, true)}
onMouseLeave={() => handleToggle(false, false)}>
{childrenToRender}
</nav>
</>
Expand Down

0 comments on commit 0a034e8

Please sign in to comment.