-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
sticky-comment-header - Fix viewer's comment headers color on GHE
#8809
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
sticky-comment-header - Fix viewer's comment headers color on GHE
#8809
Conversation
| /* Fallback in case `show-names` is disabled - #8726#issuecomment-3606420543 */ | ||
| background: var(--bgColor-muted, var(--color-canvas-subtle, fuchsia)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm reverting that. Due to #6554, the background of comment headers that should be blue is gray when navigating from issue list to issue page. The header also turns gray after a comment is edited
I assume this makes the comment headers just use the standard (non-blue) header color, right?
Yes, that's how it worked
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can html:not([rgh-OFF-show-names]) be used here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don’t think that attribute exists? But I suppose manually adding a class in that feature could also work. 👌
? I assume this makes the comment headers just use the standard (non-blue) header color, right? |
This reverts commit 854ea04.
|
@fregante @SunsetTechuila thanks for the PR and merge! |
|
@SunsetTechuila Why was the fallback fixing the transparent header problem reverted? |
@SunsetTechuila what do you mean? That it starts out as black and then changes to blue on hydration? Maybe the fallback can be applied differently, to avoid the FOUC? Eg. via JS or something. |
Or maybe adding a class, as fregante mentioned? |
That's what I'm planning to do: add this class and use it to disable |
|
Maybe we could do it in such a way that the feature doesn't get disabled, but instead degraded? (graceful degradation). Black/grey background is fine in that case. Then the notice about the |
I couldn't. Maybe you can |
|
Ok, how about this? |
|
@SunsetTechuila what do you think of this approach with the non-disableable |
|
Maybe there are already several helper features like this in RGH, but if not, then I'd rather stop trying to keep |
|
@fregante is it a requirement to keep it CSS-only? Or would a short JS feature like what @SunsetTechuila is proposing also be acceptable? |
|
I already gave my suggestion |
|
Ok, so the non-disableable @SunsetTechuila if you think you would do this, then great! Otherwise, I can take a shot at it. |
|
For future reference: Note how much this "small feature" had to be discussed and tweaked and bugfixed for months. This should help understand why I'm hesitant to accept certain features and why I might drop this one. |
|
I empathize with the back and forth of the discussion sapping of focus away from other work - it's unfortunate that GitHub's DOM, tech stack and framework integration makes for a less stable foundation upon which to build a browser extension (on the other hand, luckily, there has been no shifting in the relevant parts of that foundation since this feature was first implemented). However, aside from the back and forth in discussions and the technical requirements, I'm not sure I agree that the amount of total implementation work that has gone into this feature is overly blown-up (also as I mentioned in my comment in October - most of the work was done before then): the first versions and fixes have been developed pretty quickly by @SunsetTechuila (also taking into account browser compatibility). Maybe with looser requirements like not having the CSS-only rule and not having the dependency on other features it could have gone a bit faster - but probably also not worlds apart. |
@karlhorky I didn't look thoroughly, but I couldn't find any other helper features like that. So if you want to implement it, you'll have to do it yourself. When you do, please also change Off-topic
The lesson I've learned is that it depends on how broad the feature's effect is. If it affects something very common that appears in different forms (like comments) - expect problems. |


fixes #8801
Test URLs
Screenshot