Skip to content

Conversation

@bleroux
Copy link
Contributor

@bleroux bleroux commented Jun 3, 2024

Description

This PRs is a partial reland of #148944 which was reverted in #149448.
It makes the InputDecoration.hintText colors compliant with the M3 spec.
The initial PR also changed the font style, I will land the font change in another PR to better track the golden changes.

Related Issue

Related to the color part of #148787.

Tests

Updates several tests.

@github-actions github-actions bot added a: text input Entering text in a text field or keyboard related problems framework flutter/packages/flutter repository. See also f: labels. f: material design flutter/packages/flutter/material repository. labels Jun 3, 2024
@flutter-dashboard
Copy link

Golden file changes have been found for this pull request. Click here to view and triage (e.g. because this is an intentional change).

If you are still iterating on this change and are not ready to resolve the images on the Flutter Gold dashboard, consider marking this PR as a draft pull request above. You will still be able to view image results on the dashboard, commenting will be silenced, and the check will not try to resolve itself until marked ready for review.

For more guidance, visit Writing a golden file test for package:flutter.

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

Changes reported for pull request #149571 at sha 52f9fda597afacacd3db9006e966d1389d4382ba

@flutter-dashboard flutter-dashboard bot added the will affect goldens Changes to golden files label Jun 3, 2024
@bleroux bleroux requested a review from Renzo-Olivares June 3, 2024 12:19
@bleroux
Copy link
Contributor Author

bleroux commented Jun 3, 2024

@Renzo-Olivares This is a partial reland (containing only the color change). I have no clue about the golden changes on CI?. Locally the golden changes makes sense (the squares representing the hint text are fully part of the diff because the color is not the same). But on CI, it looks like the characters are not at the same position.

@bleroux bleroux force-pushed the reland_fix_InputDecorator_hint_color branch 2 times, most recently from a86f82a to 28faaeb Compare June 3, 2024 18:04
@flutter-dashboard
Copy link

Golden file changes are available for triage from new commit, Click here to view.

For more guidance, visit Writing a golden file test for package:flutter.

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

Changes reported for pull request #149571 at sha 28faaeb58c3f63d5116a544fa70ff5056b5a0174

@Renzo-Olivares
Copy link
Contributor

@bleroux thanks for putting this together. I'll look closer at the golden changes and see what's going on with the CI.

@Renzo-Olivares
Copy link
Contributor

Hi @bleroux, I couldn't find anything out of the ordinary with this PR, but I can confirm I'm also experiencing the same behavior as you when running the tests locally. Can you try pushing an empty commit without a force push to see if Gold does better with that. It sometimes gets confused when doing a force push, right now it has all the force pushes as the same patch set.
Screenshot 2024-06-04 at 12 04 22 PM

@flutter-dashboard
Copy link

Golden file changes are available for triage from new commit, Click here to view.

For more guidance, visit Writing a golden file test for package:flutter.

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

Changes reported for pull request #149571 at sha 24dc9e9246b02192c743e6fca62e8fb8546bf283

@Renzo-Olivares
Copy link
Contributor

Looks like that did not work. Can you try rebasing onto master in case an engine change has updated text positioning. You should probably wait until after this issue is closed #149674 before rebasing so you don't run into any failures.

@bleroux bleroux force-pushed the reland_fix_InputDecorator_hint_color branch from 24dc9e9 to 155f04d Compare June 5, 2024 06:04
@bleroux
Copy link
Contributor Author

bleroux commented Jun 5, 2024

I rebased but the tree is broken and there are unrelated test failures. I will try again when CI will be in better shape.

@flutter-dashboard
Copy link

Golden file changes are available for triage from new commit, Click here to view.

For more guidance, visit Writing a golden file test for package:flutter.

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

Changes reported for pull request #149571 at sha 253bb6a5a2f157b53e496598be0c68130b08fe94

@Piinks
Copy link
Contributor

Piinks commented Jun 5, 2024

#149674 is resolved so I've restarted the failing CI checks

@bleroux bleroux force-pushed the reland_fix_InputDecorator_hint_color branch from 253bb6a to 1b458e3 Compare June 5, 2024 20:05
@flutter-dashboard
Copy link

Golden file changes are available for triage from new commit, Click here to view.

For more guidance, visit Writing a golden file test for package:flutter.

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

Changes reported for pull request #149571 at sha 1b458e3

@flutter-dashboard
Copy link

Golden file changes are available for triage from new commit, Click here to view.

For more guidance, visit Writing a golden file test for package:flutter.

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

Changes reported for pull request #149571 at sha 4c4e210

@bleroux
Copy link
Contributor Author

bleroux commented Jun 6, 2024

@Renzo-Olivares @Piinks I filed #149797 as an experiment to see how it impact golden, the diff seems to be ok for it.

Here I'm still trying to figure out if the diff are valid because they looks very weird.
For instance the first one seems to compare a macos screenshot to a linux-browser one.

image

Maybe there is something wrong with this simple change (such as the color change leaking in some way), but if it was the case I would expect a similar diff on all platforms.

@bleroux
Copy link
Contributor Author

bleroux commented Jun 6, 2024

@Piinks
Copy link
Contributor

Piinks commented Jun 6, 2024

We chatted offline a bit about this, Gold does not compare images according to the parameter set. It compares to the closet approved image, since there can be many.

@Piinks
Copy link
Contributor

Piinks commented Jun 6, 2024

Since this Pr has gotten into a weird state and hit almost every known gold issue, I would recommend opening a new PR, or moving forward with #149797.

@bleroux
Copy link
Contributor Author

bleroux commented Jun 7, 2024

Closing and I will open a new one.

@bleroux bleroux closed this Jun 7, 2024
@bleroux bleroux deleted the reland_fix_InputDecorator_hint_color branch August 7, 2024 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: text input Entering text in a text field or keyboard related problems f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. will affect goldens Changes to golden files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants