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

Required checkboxes aren't possible with class="required" #91

Open
moqmar opened this issue Feb 20, 2021 · 1 comment
Open

Required checkboxes aren't possible with class="required" #91

moqmar opened this issue Feb 20, 2021 · 1 comment
Labels
v1 Version 1.x.x

Comments

@moqmar
Copy link

moqmar commented Feb 20, 2021

I'm using the following code:

<div class="custom-checkbox">
  <input type="checkbox" id="privacy-accepted" value="yes" required="required">
  <label for="privacy-accepted" class="required">Ich akzeptiere die Datenschutzerklärung</label>
</div>

The red asterisk is missing, but the check mark inside the checkbox is shifted to the right. I have also tried moving the class="required" to the custom-checkbox element, but it doesn't work either.

Am I doing something wrong here or is this just not implemented? I couldn't find an example of this in the docs either.

@circlensq
Copy link

I re-implement your code, and it's true, this required label thing is very hard to achieve.

@halfmoonui halfmoonui added the v1 Version 1.x.x label Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v1 Version 1.x.x
Projects
None yet
Development

No branches or pull requests

3 participants