Skip to content

Conversation

devongovett
Copy link
Member

This was already implemented in Picker, but not MenuTrigger.

@adobe-bot
Copy link

Build successful! 🎉

isOpen
});

let isMobile = useMediaQuery('(max-width: 700px)');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we hook up anything to screen resizing? probably not since it'd be unlikely that someone would change the screen size while a menu is open, and i think it closes when you try something like that?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

useMediaQuery does listen for matchMedia events, so that should already happen. 😄

autoFocus: true,
wrapAround: true
wrapAround: true,
UNSAFE_style: {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tray doesn't take care of this already?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not at the moment. do you think it's safe to do that? wasn't sure if trays could have more than one child or something

@adobe-bot
Copy link

Build successful! 🎉

@adobe-bot
Copy link

Build successful! 🎉

@dannify dannify merged commit 486ed7c into master Mar 31, 2020
@dannify dannify deleted the menutrigger-tray branch March 31, 2020 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants