Skip to content
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

[Site] Make package box titles visible in dark mode #1311

Merged
merged 1 commit into from Dec 1, 2023

Conversation

stloyd
Copy link
Contributor

@stloyd stloyd commented Nov 29, 2023

Q A
Bug fix? yes
New feature? no
Issues desc below
License MIT

Right now package box titles are really dark in the dark mode:
Zrzut ekranu 2023-11-29 o 16 54 15

With that change it will look like:
Zrzut ekranu 2023-11-29 o 16 54 08

@stloyd stloyd changed the title Make package box titles visible in dark mode [Site] Make package box titles visible in dark mode Nov 29, 2023
Comment on lines 121 to 127
color: #0A0A0A;
text-decoration: none;

[data-bs-theme="dark"] & {
filter: invert(1);
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

color: var(--bs-body-color);
text-decoration: none;

Simpler no ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Depends" ;) If you mean to change it on line 121, then it will be changed to a light theme.

I followed already used code from: https://github.com/symfony/ux/blob/2.x/ux.symfony.com/assets/styles/sections/_header.scss#L39

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because i wanted to invert all the colors, but if you look on other CSS properties, i tried to use CSS vars as much as possible because it's easier to read/maintain..

But i won't go against your suggestion :)) Iit's a good catch and a really nice attention to open this PR, and i'm really glad you did :)

@weaverryan
Copy link
Member

Thank you Joseph!

@weaverryan weaverryan merged commit ab36ec8 into symfony:2.x Dec 1, 2023
1 check passed
@stloyd stloyd deleted the patch-1 branch January 30, 2024 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants