Search Issue Tracker
Feature Request
Votes
2
Found in
6000.0.48f1
6000.1.1f1
6000.2.0a10
6000.3.0a1
Issue ID
UUM-104404
Regression
Yes
Button hover state uses default theme color when a custom .uss is applied
Reproduction steps:
1. Open the attached "repro_IN-100398" project
2. Open the "Assets/Scenes/SampleScene.unity" Scene
3. Enter the Play Mode
4. In the Game view, hover over the "Button", which is located at the top
5. Observe the color of the button
Expected result: Color of the button changes to blue
Actual result: Color of the button changes to gray
Reproducible with: 2023.2.0a13, 6000.0.48f1, 6000.1.1f1, 6000.2.0a10
Not reproducible with: 2022.3.61f1, 2023.2.0a12
Reproducible on: Windows 10 (22H2)
Not reproducible on: No other environments tested
Notes:
- Reproducible in Player
- Related Discussions thread: https://discussions.unity.com/t/pseudo-classes-dont-apply-when-used-with-theme/1636596
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note:
This is currently a limitation of our selector matching logic. It's not ideal but it requires a more significant feature work to address, not a simple bug fix.