-
Notifications
You must be signed in to change notification settings - Fork 28.2k
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
Prevent explicit roles from merging #164732
Conversation
_hasFlag(SemanticsFlag.isLink) || | ||
_hasFlag(SemanticsFlag.scopesRoute) || | ||
_hasFlag(SemanticsFlag.isImage) || | ||
_hasFlag(SemanticsFlag.isKeyboardKey)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also have isButton
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, an image can also be a button. same for keyboard key. button is more of a trait now...
now I think of it, there is also a searchBox/combobox which can be compatible with istextfield... it almost feels like the compatibility is per flag and role based..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we may need to make the role and enhance enum to be able to enter compatible flags
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
discussed offline, for role that may be compatibile, we could (a) factor out some aspect of it to a semanticsproperty(e.g searchable) (b) comes up with a way to customize merging for each enum (e.g. an enhance enum that include other mergable roles).
we can deal with them case by case when these kind of problem raise up. For now, we will go ahead with this pr
autosubmit label was removed for flutter/flutter/164732, because - The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label. |
autosubmit label was removed for flutter/flutter/164732, because - The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label. |
611eafa
to
5bdf68a
Compare
autosubmit label was removed for flutter/flutter/164732, because - The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label. |
autosubmit label was removed for flutter/flutter/164732, because - The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label. |
This reverts commit c2bb3ac.
This reverts commit c2bb3ac. <!-- Thanks for filing a pull request! Reviewers are typically assigned within a week of filing a request. To learn more about code review, see our documentation on Tree Hygiene: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md --> the previous pr may break some of the mobile a11y. some newly splitted role can't be focus by mobile a11y focus, will need to fix some of the engine code first ## Pre-launch Checklist - [ ] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [ ] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [ ] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [ ] I signed the [CLA]. - [ ] I listed at least one issue that this PR fixes in the description above. - [ ] I updated/added relevant documentation (doc comments with `///`). - [ ] I added new tests to check the change I am making, or this PR is [test-exempt]. - [ ] I followed the [breaking change policy] and added [Data Driven Fixes] where supported. - [ ] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-new channel on [Discord]. <!-- Links --> [Contributor Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview [Tree Hygiene]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md [test-exempt]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests [Flutter Style Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md [Features we expect every widget to implement]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement [CLA]: https://cla.developers.google.com/ [flutter/tests]: https://github.com/flutter/tests [breaking change policy]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes [Discord]: https://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md [Data Driven Fixes]: https://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md
This reverts commit 3d74fe1.
This reverts commit 3d74fe1.
This reverts commit 3d74fe1.
If merging explicit roles, some of the information may be dropped.
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.