-
Notifications
You must be signed in to change notification settings - Fork 30
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
Fix headline byline yellow box dark mode text colour #10215
Conversation
Hello 👋! When you're ready to run Chromatic, please apply the |
Size Change: -11 kB (-1%) Total Size: 744 kB
ℹ️ View Unchanged
|
@@ -36,7 +36,7 @@ const yellowBoxStyles = (format: ArticleFormat) => css` | |||
box-decoration-break: clone; | |||
|
|||
a { | |||
color: inherit; | |||
color: ${schemedPalette('--byline-yellowbox-anchor-colour')}; |
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.
not sure we should call it "yellow box" as the background is --byline-background
and this may not always be yellow
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.
maybe --byline-anchor-text
?
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.
Hmm yes this is interesting. I took inspiration for this from the variable name holding these styles, yellowBoxStyles
but agree that's not ideal. I'll refactor that as well.
I think --byline-anchor-text
is still a bit broad as we only want these styles applied to bylines that appear "in the box", not to every byline anchor.
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.
hmm maybe --byline-anchor-text
can work well actually! I'll see how it looks
Co-authored-by: Max Duval <max.duval@theguardian.com> Co-authored-by: Charlotte Emms <43961396+cemms1@users.noreply.github.com> Co-authored-by: Jamie B <53781962+JamieB-gu@users.noreply.github.com>
Seen on PROD (merged by @georgeblahblah 8 minutes and 53 seconds ago) Please check your changes! |
What does this change?
Closes #10191
Screenshots