-
Notifications
You must be signed in to change notification settings - Fork 306
MenuItemButton and SubmenuButton should be used in a menu or menu bar #1443
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
MenuItemButton and SubmenuButton should be used in a menu or menu bar #1443
Conversation
1731386
to
71d8478
Compare
Thanks! I've just pushed a revision with a small whitespace change and a new commit message; @gnprice PTAL. :) |
Flutter PR flutter/flutter#165596 (wiring up MenuAnchor-related widgets to SemanticsRole) breaks this test; fix it by adding the needed Semantics wrappers. Co-authored-by: Chris Bobbe <[email protected]>
71d8478
to
e0dff1e
Compare
(Added a commit bumping our Flutter-version floor because Greg noticed some failing tests with a Flutter version in the older range; also sent #1444 which I noticed was needed.) |
Thanks! Looks good; merging. |
FTR the test failures I saw looked like this, when running the Flutter commit that was in pubspec.yaml before the upgrade in this PR (flutter/flutter@a780f85, from last week):
I'm guessing the relevant change we needed to get by upgrading was flutter/flutter@32b34ff. |
Ah yes, the menu-related |
Just a question, do you know when the change will be synced with flutter/flutter? No rush at all, I'm just curious😆 |
Yeah, you can do that by making a quick PR to flutter/tests (which I can stamp-review), and then updating the flutter/tests pin as part of your flutter/flutter PR. It looks like the best docs for this process are here: with a recent change to the process found here: |
Thank you! Just created a PR for flutter/tests: flutter/tests#450 |
This is to fix the customer testing in flutter/flutter#165596 by picking up zulip/zulip-flutter#1443 ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read the [Flutter Style Guide] _recently_, and have followed its advice. - [x] I signed the [CLA]. - [x] I listed at least one issue that this PR fixes in the description above. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] I added new tests to check the change I am making, or this PR is [test-exempt]. - [x] All existing and new tests are passing.
This is to unblock PR: flutter/flutter#165596 which has test failures in customer testing.
MenuItemButton
andSubmenuButton
widgets are wired up withSemanticsRole.menuItem
and they require their parent to be eitherSemanticsRole.menu
orSemanticsRole.menuBar
.