You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
highest-rated-comment has a red background in comment header #4529
While looking at issues on GitHub, I noticed that some comments has a bright red background header, where it was dark green before.
E.g. this comment vercel/swr#93 (comment)
Refined GitHub seems to somehow change the css variables definition
When I disable Refined GitHub, it is back to being the default black header background.
Either you have a faulty style sheet somewhere or you’re victim of a bad push at GitHub. That’s an obvious bug and that code is not part of refined GitHub 😃
changed the title [-]Highest rated comment has a red background in comment header[/-][+]`highest-rated-comment` has a red background in comment header[/+]on Jun 30, 2021
My guess is that, since this is a feature preview, GitHub is using red to be able to spot those colors across the site.
It's also possible that they're moving away from those generic variables so the fact that they're here is a coincidence.
If anyone wants to look into this by replacing the variables with values that work in this theme, feel free, but ensure it works correctly across the themes and that the variables make sense (i.e. don't pick semantic variables that are unrelated, like --color-calendar-graph-day-L2-bg, just because they're green)
Don't open a PR that requires 4 reviews; it's only 4 variables that need to be changed.
I only had the feature preview enabled, I didn't use the Dark High Contrast theme.
It's most likely an issue from GitHub's end, that they create the variable twice, one with actual correct colour, and one with just red.
I will give feedback on the feature preview, because those css variables looks wrong to me.
Activity
fregante commentedon Jun 29, 2021
Either you have a faulty style sheet somewhere or you’re victim of a bad push at GitHub. That’s an obvious bug and that code is not part of refined GitHub 😃
yakov116 commentedon Jun 29, 2021
Same here. GitHub change something since last night my css looks a drop off (all over)
yakov116 commentedon Jun 29, 2021
Found the issue. if you have the preview enabled.
omBratteng commentedon Jun 30, 2021
I can confirm, it is the Dark High Contrast feature. Disabling it brought back the green header.
[-]Highest rated comment has a red background in comment header[/-][+]`highest-rated-comment` has a red background in comment header[/+]fregante commentedon Jun 30, 2021
My guess is that, since this is a feature preview, GitHub is using
redto be able to spot those colors across the site.It's also possible that they're moving away from those generic variables so the fact that they're here is a coincidence.
If anyone wants to look into this by replacing the variables with values that work in this theme, feel free, but ensure it works correctly across the themes and that the variables make sense (i.e. don't pick semantic variables that are unrelated, like
--color-calendar-graph-day-L2-bg, just because they're green)Don't open a PR that requires 4 reviews; it's only 4 variables that need to be changed.
omBratteng commentedon Jun 30, 2021
I only had the feature preview enabled, I didn't use the Dark High Contrast theme.
It's most likely an issue from GitHub's end, that they create the variable twice, one with actual correct colour, and one with just red.
I will give feedback on the feature preview, because those css variables looks wrong to me.