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

Switch to using CSS #165185

Merged
merged 2 commits into from Nov 2, 2022
Merged

Switch to using CSS #165185

merged 2 commits into from Nov 2, 2022

Conversation

lramos15
Copy link
Member

@lramos15 lramos15 commented Nov 1, 2022

My piece of #165169

@lramos15 lramos15 self-assigned this Nov 1, 2022
@lramos15 lramos15 requested a review from jrieken November 1, 2022 18:49
@VSCodeTriageBot VSCodeTriageBot added this to the November 2022 milestone Nov 1, 2022

.monaco-workbench .part.editor > .content .gettingStartedContainer button:hover {
background: var(--vscode-welcomePage-tileHoverBackground);
outline-color: var(--vscode-contrastActiveBorder);
Copy link
Member Author

Choose a reason for hiding this comment

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

This is causing me trouble, not sure what the solution is. This color token is null in the dark, and light theme. Meaning that normally in the registerThemeingParticipant it wouldn't be set at all, but here it seems to default to white causing a difference in styling. I tried playing around with it for awhile, but don't know a good fix to keep the current style we have now. Should we define this for the other theme types too? That feels unnecessary

Copy link
Member

Choose a reason for hiding this comment

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

You can use var(--name, <fallback>) like outline-color: var(--vscode-contrastActiveBorder, inherit) or so. That is still extra styling but not visible

Copy link
Member Author

@lramos15 lramos15 Nov 1, 2022

Choose a reason for hiding this comment

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

Hmm. That didn't change anything. Maybe I need a set of fresh eyes as I can't find a difference besides that line

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

The fallback works, it's just there's no way to act like the rule just isn't there if the variable is not defined. I've fallen back to the focus border color which is what would normally be applied anyways if the value isn't set. Just something to be aware of.

@lramos15 lramos15 merged commit cc7114b into main Nov 2, 2022
@lramos15 lramos15 deleted the lramos15/left-hare branch November 2, 2022 13:10
@github-actions github-actions bot locked and limited conversation to collaborators Dec 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants