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

Mobile menus 2.0. #2232

Merged
merged 9 commits into from
Jan 28, 2021
Merged

Mobile menus 2.0. #2232

merged 9 commits into from
Jan 28, 2021

Conversation

TomTirapani
Copy link
Member

@TomTirapani TomTirapani commented Dec 16, 2020

A new and improved menu system for mobile, intended to provide a more useful API and to iron out some of the inconsistencies with desktop:

  • Menus and MenuButtons no longer requires a model.
  • Menus and MenuButtons can be provided menu items as props.
  • MenuButton uses popperjs and blueprint-style position system, to position the menu relative to the button.
  • Removed AppMenuModel in favor of passing extraItems to AppMenuButton via AppBar. This is consistent with Desktop.

See issue: #2230
See Toolbox PR: xh/toolbox#457

Hoist P/R Checklist

Pull request authors: Review and check off the below. Items that do not apply can also be
checked off to indicate they have been considered. If unclear if a step is relevant, please leave
unchecked and note in comments.

  • Caught up with develop branch as of last change.
  • Added CHANGELOG entry, or determined not required.
  • Reviewed for breaking changes, added breaking-change label + CHANGELOG if so.
  • Updated doc comments / prop-types, or determined not required.
  • Reviewed and tested on Mobile, or determined not required.
  • Created Toolbox branch / PR, or determined not required.

If your change is still a WIP, please use the "Create draft pull request" option in the split
button below to indicate it is not ready yet for a final review.

Pull request reviewers: when merging this P/R, please consider using a squash commit to
collapse multiple intermediate commits into a single commit representing the overall feature
change. This helps keep the commit log clean and easy to scan across releases. PRs containing a
single commit should be rebased when possible.

+ Menus and MenuButtons no longer requires a model.
+ Menus and MenuButtons can be provided menu items as props.
+ MenuButton uses popperjs and blueprint-style position system, to position the menu relative to the button.
+ Removed AppMenuModel in favor of passing `extraItems` to AppMenuButton via AppBar. This is consistent with Desktop.
@lbwexler
Copy link
Member

Nice -- looking forward to reviewing!

# Conflicts:
#	mobile/cmp/menu/MenuModel.js
# Conflicts:
#	mobile/cmp/button/MenuButton.js
#	mobile/cmp/header/AppMenuModel.js
#	mobile/cmp/header/index.js
#	mobile/cmp/menu/Menu.js
#	mobile/cmp/menu/MenuModel.js
#	mobile/cmp/menu/index.js
#	yarn.lock
+ Move Menu to menu/impl package
Copy link
Member

@lbwexler lbwexler left a comment

Choose a reason for hiding this comment

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

👍

@lbwexler lbwexler merged commit 6cd0090 into develop Jan 28, 2021
@lbwexler lbwexler deleted the mobileMenus branch January 28, 2021 22:32
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.

2 participants