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

Checkbox: add 'indeterminate' prop #871

Open
2 tasks done
tulup-conner opened this issue Jul 20, 2023 Discussed in #870 · 6 comments
Open
2 tasks done

Checkbox: add 'indeterminate' prop #871

tulup-conner opened this issue Jul 20, 2023 Discussed in #870 · 6 comments
Assignees
Labels
good first issue Good for newcomers 🚀 enhancement New feature or request
Milestone

Comments

@tulup-conner
Copy link
Collaborator

tulup-conner commented Jul 20, 2023

  • I have searched the Issues to see if this bug has already been reported
  • I have tested the latest version

Summary

Discussed in #870

Originally posted by grasdira July 19, 2023

Enhancement Suggestion

I think it would be nice to add indeterminate (or isIndeterminate) prop to Checkbox component.

Example:

<Checkbox indeterminate .. />

Context

This is officially supported by DOM elements in all browsers. See https://developer.mozilla.org/en-US/docs/Web/CSS/:indeterminate

@tulup-conner tulup-conner added 🚀 enhancement New feature or request good first issue Good for newcomers labels Jul 20, 2023
@tulup-conner tulup-conner added this to the 1.0.0 milestone Jul 20, 2023
@grasdira
Copy link

Hi! I'd like to take a shot at solving this issue. Could you assign it to me? Thanks

@tulup-conner
Copy link
Collaborator Author

@grasdira Done, but for the future, you are always welcome to just get started on an issue!

@shereen-fathy
Copy link

Hi @grasdira, any progress on this issue?

@grasdira
Copy link

Hi @shereen-fathy, yes, I've made some progress on this issue.

grasdira added a commit to grasdira/flowbite-react that referenced this issue Nov 28, 2023
grasdira added a commit to grasdira/flowbite-react that referenced this issue Nov 28, 2023
…f checkbox :indeterminate

Override the original style of [type='checkbox']:indeterminate.

themesberg#871
grasdira added a commit to grasdira/flowbite-react that referenced this issue Nov 28, 2023
grasdira added a commit to grasdira/flowbite-react that referenced this issue Nov 28, 2023
…r indeterminate checkbox

Add an example of using the indeterminate state to handle multiple checkboxes in a group of tree
structure.

themesberg#871
tulup-conner pushed a commit to grasdira/flowbite-react that referenced this issue Nov 30, 2023
tulup-conner pushed a commit to grasdira/flowbite-react that referenced this issue Nov 30, 2023
…f checkbox :indeterminate

Override the original style of [type='checkbox']:indeterminate.

themesberg#871
tulup-conner pushed a commit to grasdira/flowbite-react that referenced this issue Nov 30, 2023
…r indeterminate checkbox

Add an example of using the indeterminate state to handle multiple checkboxes in a group of tree
structure.

themesberg#871
@Stupidism
Copy link

Any progress on this issue? Thanks~~

grasdira added a commit to grasdira/flowbite-react that referenced this issue Jan 17, 2024
Added extended theme 'colors.current' and 'backgroundImage.indeterminate' to set default styles for
indeterminate checkbox

themesberg#871
grasdira added a commit to grasdira/flowbite-react that referenced this issue Jan 17, 2024
…yles

remove [type='checkbox']:indeterminate styles to make development more flexibility

themesberg#871
grasdira added a commit to grasdira/flowbite-react that referenced this issue Jan 17, 2024
…the indeterminate state

'indeterminate:bg-indeterminate' uses the extended backgroundImage in `tailwind.config.ts`;
'dark:indeterminate:bg-current dark:indeterminate:border-gray-600' fixes checkbox's bg-color and
border under dark mode

themesberg#871
grasdira added a commit to grasdira/flowbite-react that referenced this issue Mar 3, 2024
grasdira added a commit to grasdira/flowbite-react that referenced this issue Mar 3, 2024
…f checkbox :indeterminate

Override the original style of [type='checkbox']:indeterminate.

themesberg#871
grasdira added a commit to grasdira/flowbite-react that referenced this issue Mar 3, 2024
grasdira added a commit to grasdira/flowbite-react that referenced this issue Mar 3, 2024
…r indeterminate checkbox

Add an example of using the indeterminate state to handle multiple checkboxes in a group of tree
structure.

themesberg#871
grasdira added a commit to grasdira/flowbite-react that referenced this issue Mar 3, 2024
Added extended theme 'colors.current' and 'backgroundImage.indeterminate' to set default styles for
indeterminate checkbox

themesberg#871
grasdira added a commit to grasdira/flowbite-react that referenced this issue Mar 3, 2024
…yles

remove [type='checkbox']:indeterminate styles to make development more flexibility

themesberg#871
grasdira added a commit to grasdira/flowbite-react that referenced this issue Mar 3, 2024
…the indeterminate state

'indeterminate:bg-indeterminate' uses the extended backgroundImage in `tailwind.config.ts`;
'dark:indeterminate:bg-current dark:indeterminate:border-gray-600' fixes checkbox's bg-color and
border under dark mode

themesberg#871
grasdira added a commit to grasdira/flowbite-react that referenced this issue Mar 4, 2024
The indeterminate icon fixed in a recent commit:
themesberg/flowbite@ec0eab5 Upgrade
flowbite version to apply changes.

themesberg#871
grasdira added a commit to grasdira/flowbite-react that referenced this issue Mar 4, 2024
@azerazerty
Copy link

is this fixed or not yet ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers 🚀 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants