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

Adding prop to modify the interior color of checkbox #1506

Open
ediazm opened this issue Dec 17, 2024 · 0 comments
Open

Adding prop to modify the interior color of checkbox #1506

ediazm opened this issue Dec 17, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ediazm
Copy link

ediazm commented Dec 17, 2024

Summary

The color inside the checkbox is sometimes difficult to distinguish if it is disabled or not, depending on the background color that users are using (https://flowbite-svelte.com/docs/components/table#Checkbox).

Having a prop boxColor: white | grey | orange

Would simplify not having to override it.

Basic example

We already have:
props: HTMLInputAttributes & {
color?: FormColorType;
custom?: boolean;
inline?: boolean;
group?: string[];
choices?: CheckboxItem[];
value?: string | number;
checked?: boolean;
spacing?: string;
groupLabelClass?: string;
groupInputClass?: string;
class?: string;
required?: boolean;
};

adding boxColor: string

to be able to modify the interior of the checkbox when it is not checked

Motivation

Currently the unchecked colors of the checkbox are difficult to distinguish if the the user background is similar to the default value. This would also improve the a11y quatlity of the checkbox

@ediazm ediazm added the enhancement New feature or request label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant