Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Button uses wrong background on hover with light HC theme #365

Closed
daviddossett opened this issue Mar 31, 2022 · 2 comments · Fixed by #428
Closed

Button uses wrong background on hover with light HC theme #365

daviddossett opened this issue Mar 31, 2022 · 2 comments · Fixed by #428
Assignees
Labels
accessibility There's an accessibility issue bug Something isn't working

Comments

@daviddossett
Copy link
Collaborator

CleanShot 2022-03-31 at 10 25 12

@daviddossett daviddossett added bug Something isn't working accessibility There's an accessibility issue labels Mar 31, 2022
@daviddossett daviddossett self-assigned this Mar 31, 2022
@daviddossett
Copy link
Collaborator Author

daviddossett commented Apr 1, 2022

It appears this is related to this behavior:

if (
value.length === 0 &&
toolkitToken.name.includes('background')
) {
value = 'transparent';

I'm slightly confused why removing this as a sanity check doesn't work since these values are indeed explictly set in VS Code core. Note the hcLight value set here:

https://github.com/microsoft/vscode/blob/6fcf02f29a125db24f67bd9dc43110a02773edf0/src/vs/platform/theme/common/colorRegistry.ts#L269

Is this related to how the tokens are supplied to webviews?

@daviddossett
Copy link
Collaborator Author

VS Code now tells webviews about hc-light so I can pick this up later this week or next.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accessibility There's an accessibility issue bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant