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
default-branch-button: Button has pink corruption on GHES #7857
The following works for me. The layout here is very different between GHES and normal github, so I had to do some tweaks to target the dropdown in both without also picking up the expanded menu.
That's just because of your selector, it just needs to be .rgh-highlight-non-default-branch and .rgh-highlight-non-default-branch svg respectively
Unfortunately, that does not work-- it's what I showed in the plain revert (though also the menu turns blue instead of pink).
The specifiers are different because in GHES but not cloud:
The full menu is a child of the button, so random parts of it inherit the highlighted color. In cloud, it's not a child.
There's a summary.btn child that re-applies the normal background and border color instead of inheriting the highlight from the parent (details.rgh-highlight-non-default-branch). In cloud, they don't use details/summary so the color is not overridden.
I'm not sure if it makes more sense to modify the javascript parts to tweak where the class is applied instead?
I think we can just publish some CSS to hide the pink areas and leave the rest as "progressive enhancement". You'll start seeing the correct colors once your GHE version is updated
However I don't know how to do that while also preserving the fuchsia for the future.
The second best bet would be to use your suggested code, but with more specific selectors so that they don't leak into the dropdown. No JS changes needed/desired.
Activity
fregante commentedon Oct 4, 2024
This is likely due to the lack of new variable names. Presumably this specific commit should be reverted:
11f51bc(#7804)@JakeMerdichAMD Can you try those variable names?
cc @kovsu
fuchsiais doing its job 😁default-branch-button- Highlight non default branch button #7804 (comment)JakeMerdichAMD commentedon Oct 4, 2024
With that reverted (ie. using --color-accent-subtle/--color-accent-fg), it looks like this:
fregante commentedon Oct 4, 2024
It should look like this in the end. Finding the right names for the variables is the challenge.
JakeMerdichAMD commentedon Oct 4, 2024
The following works for me. The layout here is very different between GHES and normal github, so I had to do some tweaks to target the dropdown in both without also picking up the expanded menu.
fregante commentedon Oct 4, 2024
Great! How does that exact CSS look on the light theme?
JakeMerdichAMD commentedon Oct 4, 2024
Just like your image, as far as I can tell.
GHES:


Cloud:


Also see menu does not get incorrect colors on GHES, which I only noticed while testing the CSS:


Before:
fregante commentedon Oct 4, 2024
Thank you! If you have time, I'd accept a PR. Or I'll fix it at some point.
I'll probably hotfix it too in https://github.com/refined-github/yolo
That's just because of your selector, it just needs to be
.rgh-highlight-non-default-branchand.rgh-highlight-non-default-branch svgrespectivelyJakeMerdichAMD commentedon Oct 4, 2024
Unfortunately, that does not work-- it's what I showed in the plain revert (though also the menu turns blue instead of pink).
The specifiers are different because in GHES but not cloud:
summary.btnchild that re-applies the normal background and border color instead of inheriting the highlight from the parent (details.rgh-highlight-non-default-branch). In cloud, they don't use details/summary so the color is not overridden.I'm not sure if it makes more sense to modify the javascript parts to tweak where the class is applied instead?
fregante commentedon Oct 4, 2024
I think we can just publish some CSS to hide the pink areas and leave the rest as "progressive enhancement". You'll start seeing the correct colors once your GHE version is updated
However I don't know how to do that while also preserving the
fuchsiafor the future.The second best bet would be to use your suggested code, but with more specific selectors so that they don't leak into the dropdown. No JS changes needed/desired.
`default-branch-button`: Button has pink corruption on GHES
JakeMerdichAMD commentedon Oct 4, 2024
I'm not sure what you mean by this-- I'll just put up the PR as-is for now.
busches commentedon Oct 4, 2024
Not sure what version of GHE OP is using, but I can confirm it's happening on 3.13, which is one minor version behind the latest.
JakeMerdichAMD commentedon Oct 4, 2024
3.12.7 here.
`24.10.1` Fix pink button on GHE