Skip to content

fix: Keep checked state background when using filled variant #386

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

russkyc
Copy link

@russkyc russkyc commented Feb 7, 2025

This fixes the checkbox checked state background being overridden when using the filled variant.

When using the filled variant of the checkbox, the checked background gets overridden by the .variant-filled background. To fix this, the .variant-filled background should only apply when the checkbox is not in a checked state.

.p-checkbox.p-variant-filled:not(.p-checkbox-checked) .p-checkbox-box {
    @apply bg-surface-50 dark:bg-surface-800
}

Copy link

vercel bot commented Feb 7, 2025

@russkyc is attempting to deploy a commit to the primetek Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant