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

Make table inherit body's color #1310

Merged
merged 1 commit into from
Aug 6, 2024
Merged

Conversation

bblanchon
Copy link
Contributor

When trying to fix #1308, I quickly realized that hardcoding the values $table-color doesn't work great for dark color mode.

The best solution I found was to reset the value of $table-color like so:

$table-color: initial !default;

The effect of this is that the table inherits the color of the body, which works well for all themes in both light and dark modes.

@thomaspark
Copy link
Owner

Thanks for the PR. This seems on the right path, but there is some inconsistency with font color when a class like .table-primary is applied.

For example, Pulse before:

Screenshot 2024-08-04 at 11 42 01 AM

Pulse after:

Screenshot 2024-08-04 at 11 41 57 AM

And for reference, Pulse v4:

Screenshot 2024-08-04 at 11 42 51 AM

@bblanchon
Copy link
Contributor Author

I amended my previous commit.
Here is the new Pulse:

image

I updated all the other themes too.

@thomaspark
Copy link
Owner

Looks good, thank you!

@thomaspark thomaspark merged commit 651bdcc into thomaspark:v5 Aug 6, 2024
4 checks passed
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.

th's color is not set in v5
2 participants