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

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 join this conversation on GitHub. Already have an account? Sign in to comment
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