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

feat(toggle): handle indeterminate state in a select-all checkbox #161

Conversation

BalbinaK
Copy link
Contributor

@BalbinaK BalbinaK commented Oct 28, 2022

Fixes fabric-ds/issues#110 / FRON-680

Screenshot 2022-10-28 at 11 50 46

Additionally: fix a React input error where we were trying to control an uncontrolled input value.

Add support for displaying a checkbox with a small dash instead of a tick to indicate that the
option is not exactly checked or unchecked.

q
Check if input value (selected or checked) is defined to determine whether input is controlled.
@BalbinaK BalbinaK requested a review from benja November 2, 2022 13:44
@BalbinaK BalbinaK requested a review from benja November 3, 2022 07:54
Copy link
Contributor

@benja benja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@BalbinaK BalbinaK merged commit af1970b into next Nov 3, 2022
@BalbinaK BalbinaK deleted the FRON-680-react-toggle-indeterminant-mixed-state-in-the-select-all-checkbox branch November 3, 2022 10:24
github-actions bot pushed a commit that referenced this pull request Nov 3, 2022
# [1.5.0-next.1](v1.4.3-next.1...v1.5.0-next.1) (2022-11-03)

### Features

* **toggle:** handle indeterminate state in a select-all checkbox ([#161](#161)) ([af1970b](af1970b))
@github-actions
Copy link
Contributor

github-actions bot commented Nov 3, 2022

🎉 This PR is included in version 1.5.0-next.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request Nov 21, 2022
# [1.5.0](v1.4.2...v1.5.0) (2022-11-21)

### Bug Fixes

* **breadcrumbs:** handle array of nodes passed as children ([04728d9](04728d9))
* **Card:** fix toggle-in-card navigation ([#165](#165)) ([fd03fc6](fd03fc6))

### Features

* **toggle:** handle indeterminate state in a select-all checkbox ([#161](#161)) ([af1970b](af1970b))
@github-actions
Copy link
Contributor

🎉 This PR is included in version 1.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

React toggle: indeterminant (mixed) state in the “Select all” checkbox
2 participants