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

CheckboxOne : cannot be unchecked #1189

Open
1 of 6 tasks
QRuhier opened this issue Dec 10, 2024 · 1 comment
Open
1 of 6 tasks

CheckboxOne : cannot be unchecked #1189

QRuhier opened this issue Dec 10, 2024 · 1 comment
Assignees
Labels
Type: Bug Something isn't working

Comments

@QRuhier
Copy link
Contributor

QRuhier commented Dec 10, 2024

Describe the bug

CheckboxOne is like a radio, but with a checkbox style and should allow to uncheck the checked modality.
Currently it does not allow to uncheck anymore

  • I tested it on the storybook, which leads me to believe that it's a lunatic bug.

To Reproduce

Steps to reproduce the behavior:

1.Go to a checkboxOne component
2. Check a modality
3. Try to uncheck the modality

Expected behavior

Modality should be unchecked

Screenshots

Version where the bug appeared

?

Browser where the bug was tested

  • Chrome
  • Firefox
  • Safari
  • Edge
  • Other (please specify): ___

Additional context

Add any other context about the problem here.

@QRuhier
Copy link
Contributor Author

QRuhier commented Dec 10, 2024

Even if it's not a standard to make single-choice question modality uncheckable (since it should be radio buttons), we assume that as long as we maintain CheckboxOne this components allows to uncheck.

Then CheckboxOne works exactly like Radio, except :

  • style is changed for looking like checkboxes
  • you can uncheck the checked modality

@JulienCarmona @lailabent for the future, do we want to keep this component ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants