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

Read-only TextInput text is invisible #6708

Merged
merged 5 commits into from
Jan 25, 2022

Conversation

julienamsellem
Copy link
Contributor

Purpose of this PR

https://fogbugz.unity3d.com/f/cases/1387237/

Some recent changes in UIToolkit made our read-only TextInput unreadable because of the opacity being set to all disabled elements in the UI hierarchy instead of only to the leaf.
[Before]
Unity_U8TGh9Wrai

[After]
Unity_Bw1bsbDBeo


Testing status

Checked for operators connected together and for operator connected to a block.


Comments to reviewers

The risks are really limited since the change should affect only "ports".

@github-actions
Copy link

Hi! This comment will help you figure out which jobs to run before merging your PR. The suggestions are dynamic based on what files you have changed.
Link to Yamato: https://unity-ci.cds.internal.unity3d.com/project/902/
Search for your PR branch using the search bar at the top, then add the following segment(s) to the end of the URL (you may need multiple tabs depending on how many packages you change)

VFX
/jobDefinition/.yamato%252Fall-vfx.yml%2523PR_VFX_trunk

Depending on the scope of your PR, you may need to run more jobs than what has been suggested. Please speak to your lead or a Graphics SDET (#devs-graphics-automation) if you are unsure.

Copy link
Contributor

@VladNeykov VladNeykov left a comment

Choose a reason for hiding this comment

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

Hi, looking good!
Tested:

  • operators and blocks
  • single and multiple connected operators
  • with subgraph operator
  • scanned though a large VFX containing all operators and blocks, didn't see any regressions

Thanks for the fix! :)

@julienamsellem julienamsellem marked this pull request as ready for review January 11, 2022 13:24
Copy link
Contributor

@ludovic-theobald ludovic-theobald left a comment

Choose a reason for hiding this comment

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

Looks good :)

@julienamsellem julienamsellem merged commit a198988 into master Jan 25, 2022
@julienamsellem julienamsellem deleted the vfx/fix/1387237-invisible-text-when-disabled branch January 25, 2022 13:57
julienf-unity pushed a commit that referenced this pull request Feb 8, 2022
* Fixed regression due to recent TextInput refactoring in UIToolkit

* Updated changelog
matteblair pushed a commit to Pontoco/Graphics that referenced this pull request Sep 7, 2022
Jira ticket: https://jira.unity3d.com/browse/UUM-9227
Original PR: Unity-Technologies#6708
Original FB: https://fogbugz.unity3d.com/f/cases/1387237/

Some recent changes in UIToolkit made our read-only TextInput unreadable because of the opacity being set to all disabled elements in the UI hierarchy instead of only to the leaf.
[Before]
![Unity_U8TGh9Wrai](https://user-images.githubusercontent.com/85612173/148914409-6a4176a5-8404-4ad8-add4-839cd9c760d7.gif)

[After]
![Unity_Bw1bsbDBeo](https://user-images.githubusercontent.com/85612173/148914554-4f8a0e24-2514-4ffb-ad7e-4191cf73bdea.gif)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants