-
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
Implement darkmode for article body links #9520
Conversation
Size Change: 0 B Total Size: 699 kB ℹ️ View Unchanged
|
bd06c51
to
4e5ee6a
Compare
import { decideLanguage, decideLanguageDirection } from '../lib/lang'; | ||
import { revealStyles } from '../lib/revealStyles'; | ||
import type { ImageForAppsLightbox } from '../model/appsLightboxImages'; | ||
import { palette as themePalette } from '../palette'; |
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.
could keep this as palette
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.
Yeah we definitely could. I might leave it as is for now so its consistent with the other uses and then we can refactor once we've got rid of the decidePalette
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’ve used schemedPalette
as well 😆
border-bottom: 1px solid | ||
${themePalette('--article-link-border-hover')}; |
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.
FYI, I’m proposing we move to text-decoration-color
in Byline: #9494
I also wonder if we should simply use currentColor
on hover? Is it ever a different colour to the anchor’s color
?
This reverts commit 8bdfc10.
What does this change?
Updates the article links to use the palette. The current implementation of this in AR is a neutral link colour rather than the pillar colour
Why?
This is part of a larger body of work to support dark mode on apps.
Resolves #9497
Screenshots