Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix switch when no color is given #5751

Merged
merged 1 commit into from
Jan 22, 2025
Merged

fix switch when no color is given #5751

merged 1 commit into from
Jan 22, 2025

Conversation

tabacitu
Copy link
Member

WHY

BEFORE - What was wrong? What was happening before this PR?

When no color was given to the switch column, and --bg-switch-checked-color is not defined in the CSS, the switch column wasn't visible at all:

CleanShot 2025-01-22 at 11 38 44@2x

AFTER - What is happening after this PR?

In that niche use case, the switch is visible and defaults to absolute black:

CleanShot 2025-01-22 at 11 39 19@2x

HOW

How did you achieve that, in technical terms?

Set a default to the CSS variable.

Is it a breaking change?

No.

How can we test the before & after?

You can disable our purple stylesheet in our demo - then that CSS variable will not exist. In that case, in our MonsterCrudController, the switch will no longer be visible.

@tabacitu tabacitu added the Minor Bug A bug that happens only in a very niche or specific use case. label Jan 22, 2025
@pxpm pxpm merged commit 892464a into main Jan 22, 2025
11 checks passed
@pxpm pxpm deleted the fix-switch-default-color branch January 22, 2025 10:05
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Minor Bug A bug that happens only in a very niche or specific use case.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants