Skip to content

Conversation

@hannah-hyj
Copy link
Member

@hannah-hyj hannah-hyj commented Feb 12, 2024

Add a semantics flag to text field to fix #143337 (in IOS the disabled text field is not read dimmed)

internal: b/322345393

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.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact "@test-exemption-reviewer" in the #hackers channel in Chat (don't just cc them here, they won't see it! Use Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@github-actions github-actions bot added the framework flutter/packages/flutter repository. See also f: labels. label Feb 12, 2024
@hannah-hyj hannah-hyj changed the title Add isEnabled semantics flag to text field Add isEnabled semantics flag to editable text Feb 12, 2024
@hannah-hyj hannah-hyj changed the title Add isEnabled semantics flag to editable text Add isEnabled semantics flag to text field Feb 13, 2024
@github-actions github-actions bot added a: text input Entering text in a text field or keyboard related problems f: material design flutter/packages/flutter/material repository. f: cupertino flutter/packages/flutter/cupertino repository labels Feb 13, 2024
@github-actions github-actions bot added the a: tests "flutter test", flutter_test, or one of our tests label Feb 13, 2024
@hannah-hyj hannah-hyj changed the title Add isEnabled semantics flag to text field [a11y] Add isEnabled semantics flag to text field Feb 13, 2024
@math1man
Copy link
Contributor

This is a good change, but it won't fix #143337. I tried manually wrapping TextField in a Semantics widget myself and it doesn't solve the issue. There is some bug on the iOS and Web engine side that needs to be fixed.

@hannah-hyj
Copy link
Member Author

I did some manually IOS testing, if a semantics node has flags [isTextField hasEnabledState isReadOnly], it will read dimmed in IOS (as we want). if it has flag [isTextField isReadOnly], it's not read as dimmed.

the text field semantics node should have enabled/disabled semantics flag.

@hannah-hyj
Copy link
Member Author

Reason for revert: broke g3 tests

@hannah-hyj hannah-hyj added the revert Autorevert PR (with "Reason for revert:" comment) label Feb 14, 2024
auto-submit bot pushed a commit that referenced this pull request Feb 14, 2024
@auto-submit auto-submit bot removed the revert Autorevert PR (with "Reason for revert:" comment) label Feb 14, 2024
auto-submit bot added a commit that referenced this pull request Feb 14, 2024
…#143494)

Reverts #143334

Initiated by: hangyujin

Reason for reverting: broke g3 tests

Original PR Author: hangyujin

Reviewed By: {LongCatIsLooong}

This change reverts the following previous change:
Original Description:
Add a semantics flag to   text field to fix #143337 (in IOS the disabled text field is not read `dimmed`)

internal: b/322345393
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 15, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 15, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 15, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 16, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 16, 2024
hannah-hyj added a commit that referenced this pull request Feb 16, 2024
hannah-hyj added a commit to hannah-hyj/flutter that referenced this pull request Feb 22, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: tests "flutter test", flutter_test, or one of our tests a: text input Entering text in a text field or keyboard related problems autosubmit Merge PR when tree becomes green via auto submit App f: cupertino flutter/packages/flutter/cupertino repository f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ios] [web] iOS and web Semantics do not support labeling EditTexts as disabled.

3 participants