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 clickable area not as big as the size of the checkbox #6699

Open
AbdullahGheith opened this issue Oct 8, 2024 · 0 comments
Open
Labels

Comments

@AbdullahGheith
Copy link
Contributor

Description of the bug

If i add a checkbox to an empty page, and add the following css:

vaadin-checkbox {
  border: 2px solid #ccc;
  width:100%;
}

The checkbox will not be clickable within the border, but the animation for hover/click animations occur without the checkbox being triggered

Expected behavior

Checkbox should be clickable in all of the checkbox's sizearea

Minimal reproducible example

Add a checkbox to an empty page, and extend its size. It will only be clickable in the text and the squared checkbox itself

              Checkbox checkbox = new Checkbox();
               checkbox.setLabel("Clickable here");
               checkbox.setWidth("100%");
               checkbox.getStyle().set("border", "2px solid #ccc");

Versions

  • Vaadin / Flow version: 24.4.13
  • Java version: 17
  • OS version: 11
  • Browser version (if applicable): Chrome
  • Application Server (if applicable): Spring boot
  • IDE (if applicable): Intellij
@TatuLund TatuLund transferred this issue from vaadin/flow Oct 8, 2024
@mshabarov mshabarov transferred this issue from vaadin/web-components Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants