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 should be able to support isMandatory #1160

Open
dominik-petschenka-syzygy opened this issue Jun 28, 2024 · 3 comments
Open

Checkbox should be able to support isMandatory #1160

dominik-petschenka-syzygy opened this issue Jun 28, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@dominik-petschenka-syzygy

In some forms we need checkboxes that have to be checked for the user to proceed.

Right now we have to implement our own state handling and validation for these checkboxes.

It would be great if the Checkbox component would support isMandatory out of the box. It should prevent the form from being submitted and render a colored indication or similar like the Select and TextField.

@dominik-petschenka-syzygy dominik-petschenka-syzygy added the enhancement New feature or request label Jun 28, 2024
@pladaria
Copy link
Member

pladaria commented Jul 2, 2024

Thanks for your suggestion. We will discuss this feature with the design team

@marcoskolodny
Copy link
Collaborator

Hello @dominik-petschenka-syzygy. Thank you for your suggestion! :)

We need to review this with the design team. In the future, you may want to open a discussion in the mistica-design repo instead: https://github.com/Telefonica/mistica-design/discussions

@pladaria
Copy link
Member

pladaria commented Jul 2, 2024

Our current design specs for this use case say:

When checkboxes are used in forms for legal conditions or other types of information that prevent the process from continuing without acceptance, we will display an alert/dialog to the user explaining that they need to accept the respective field

Example implementation

Design Team will review this anyway

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

3 participants