mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Navigation: Scrolled hamburger menu links now navigate correctly in Safari (#66261)
overlayProps/dialogProps need to go inside FocusScope
This commit is contained in:
parent
3e4eb9c93e
commit
0aa301e251
@ -61,8 +61,8 @@ export function NavBarMenu({ activeItem, navItems, searchBarHidden, onClose }: P
|
||||
timeout={{ enter: animationSpeed, exit: 0 }}
|
||||
onExited={onClose}
|
||||
>
|
||||
<div data-testid="navbarmenu" ref={ref} {...overlayProps} {...dialogProps} className={styles.container}>
|
||||
<FocusScope contain autoFocus>
|
||||
<FocusScope contain autoFocus>
|
||||
<div data-testid="navbarmenu" ref={ref} {...overlayProps} {...dialogProps} className={styles.container}>
|
||||
<div className={styles.mobileHeader}>
|
||||
<Icon name="bars" size="xl" />
|
||||
<IconButton
|
||||
@ -82,8 +82,8 @@ export function NavBarMenu({ activeItem, navItems, searchBarHidden, onClose }: P
|
||||
</ul>
|
||||
</CustomScrollbar>
|
||||
</nav>
|
||||
</FocusScope>
|
||||
</div>
|
||||
</div>
|
||||
</FocusScope>
|
||||
</CSSTransition>
|
||||
<CSSTransition
|
||||
nodeRef={backdropRef}
|
||||
|
Loading…
Reference in New Issue
Block a user