Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix GitHub color variables - #4982

Merged
cheap-glitch merged 7 commits into
mainfrom
fix-gh-color-vars
Oct 30, 2021
Merged

cheap-glitch merged 7 commits into
mainfrom
fix-gh-color-vars

Conversation

@cheap-glitch

@cheap-glitch cheap-glitch commented Oct 25, 2021

Copy link
Copy Markdown
Contributor

Fixes #4855
Follow-up of #4970

Test URLs

Screenshot

Before
screenshot-1635172803

After
screenshot-1635172780

@cheap-glitch cheap-glitch left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Should we add a TODO comment somewhere reminding us to remove all the obsolete classes and variables, in maybe 6 months?

@yakov116

This comment has been minimized.

Comment thread source/refined-github.css
transform: translate(50%, 50%);
min-width: 380px; /* Avoids a width change on the last step which causes the YES button to be where NO was */
box-shadow: var(--color-toast-shadow);
box-shadow: var(--color-shadow-large, var(--color-toast-shadow));

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@fregante fregante left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We can merge this now or wait a little longer so it can receive more fixes (just merge it by v21.11.1)

@cheap-glitch
cheap-glitch marked this pull request as draft October 29, 2021 09:09
@cheap-glitch

This comment has been minimized.

@cheap-glitch
cheap-glitch marked this pull request as ready for review October 29, 2021 13:20
Comment thread source/features/conflict-marker.css Outdated
Comment on lines 1 to 7
[data-color-mode="light"] .rgh-conflict-marker svg {
color: #ccc;
}

[data-color-mode="dark"] .rgh-conflict-marker svg {
color: var(--color-fg-muted);
}

@cheap-glitch cheap-glitch Oct 29, 2021

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

GitHub dropped color-icon/text-tertiary and advises to replace it with color-fg-muted in the migration guide.

While this works well in dark mode, it's too strong in light mode, so I opted to manually check for the current mode and keep the old color in the light one.

Everywhere else I used color-fg-subtle which is still darker than tertiary was, but is closer to it than fg-muted.

@cheap-glitch
cheap-glitch merged commit 8160cd6 into main Oct 30, 2021
@cheap-glitch
cheap-glitch deleted the fix-gh-color-vars branch October 30, 2021 14:24
@kidonng

kidonng commented Oct 30, 2021

Copy link
Copy Markdown
Member

Finally! I always feel strange about the colors when I thought the fix has already been merged (probably because of the previous PR).

@fregante fregante mentioned this pull request May 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

CSS variable --color-icon-tertiary and more are gone 😩

4 participants