-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
[CheckboxGroup] Implement components and hooks #458
Conversation
Netlify deploy preview |
14e28ea
to
64d67a9
Compare
Init conformance tests Fix label context test test Update
af887e3
to
de6e4f0
Compare
Signed-off-by: atomiks <cc.glows@gmail.com>
docs/data/base/components/checkbox-group/UnstyledCheckboxGroupIntroduction/css/index.js
Outdated
Show resolved
Hide resolved
docs/data/base/components/checkbox-group/UnstyledCheckboxGroupIntroduction/css/index.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I select some items (such as Red and Green) and click on All Colors repeatedly, the selection goes from all to none to Red and Green again. This is quite unexpected (I can't recall seeing such behavior elsewhere). Usually, the parent checkbox toggles between all and none and the partially selected state is lost.
I would make it configurable if you want to keep this behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what the ARIA demo does, but yeah I can make it configurable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This surprised me too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added preserveChildStates
prop
Closes #213