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

Disabled options text color is incorrect in Dropdown component #668

Closed
YasserDbeis opened this issue Oct 28, 2024 · 9 comments · Fixed by #674 · May be fixed by #717
Closed

Disabled options text color is incorrect in Dropdown component #668

YasserDbeis opened this issue Oct 28, 2024 · 9 comments · Fixed by #674 · May be fixed by #717
Assignees
Labels
bug Something isn't working

Comments

@YasserDbeis
Copy link
Collaborator

YasserDbeis commented Oct 28, 2024

I am an engineer for Android Studio Profiler which, as of Koala Feature Drop, has been using Jewel for the home tab implementation. Recently we had the following bug reported: https://b.corp.google.com/issues/376056212. This was also reproduced in another area of Studio that employs Jewel (Device Manager > Add a new device). This issue first appeared in Ladybug Feature Drop, and was not present in Koala Feature Drop nor Ladybug 1.

Essentially, the issue can be summarized as, when a single disabled dropdown option, or even if the dropdown itself is disabled, the text color shown makes it look like its enabled.

To reproduce, I simply cloned the jewel project, set enabled equal to false for the only Dropdown in the ComposeShowcaseTab and ran the IDE Sample. Here is the result:
image

@rock3r rock3r added the bug Something isn't working label Nov 5, 2024
@rock3r
Copy link
Collaborator

rock3r commented Nov 5, 2024

@hamen can you take a look? This is in the old dropdowns, but feels like the bug is actually in the menu items

@hamen
Copy link
Collaborator

hamen commented Nov 6, 2024

I'm looking into it today 🤞

hamen added a commit that referenced this issue Nov 6, 2024
Signed-off-by: Ivan Morgillo <[email protected]>
hamen added a commit that referenced this issue Nov 6, 2024
Signed-off-by: Ivan Morgillo <[email protected]>
@rock3r rock3r closed this as completed in 52a6d49 Nov 6, 2024
@YasserDbeis
Copy link
Collaborator Author

Thanks!!!

@YasserDbeis
Copy link
Collaborator Author

Studio just got jewel 0.27.0 which I confirmed contains this fix, but I just tried it out and it seems like the disabled entry still looks enabled?

In this example, the "Process start" entry is unselectable and disabled, but looks like its not. Also, this might be unrelated, but it seems like the dropdown ui changed as well? Options are much thinner than before.
image

@YasserDbeis YasserDbeis reopened this Nov 28, 2024
@YasserDbeis
Copy link
Collaborator Author

YasserDbeis commented Nov 28, 2024

It is worth noting that the case in which the entire dropdown is disabled now is working fine:
image

But in the bug description I believe both cases (entire dropdown + a single option) were mentioned.

@rock3r
Copy link
Collaborator

rock3r commented Nov 28, 2024

Thanks Yasser. Will have Ivan look into this again next week.

hamen added a commit that referenced this issue Dec 6, 2024
Signed-off-by: Ivan Morgillo <[email protected]>
@hamen
Copy link
Collaborator

hamen commented Dec 6, 2024

I have a fix in #717

@YasserDbeis
Copy link
Collaborator Author

Thanks! Will this also address the issue where the dropdown options look much thinner now?

@hamen
Copy link
Collaborator

hamen commented Dec 6, 2024

Unfortunately, no, the reason being #718.
We are close to releasing an on-spec, polished new version of the old Dropdown, called ListComboBox, that is properly mirroring what Swing currently does: #715.
No rush to migrate, but you should definitely check it out once we release this latest iteration.

@hamen hamen closed this as completed Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants