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

Add id to the checkbox and wrap the icon and label text with a labe… #667

Merged

Conversation

kasperbirch1
Copy link
Contributor

@kasperbirch1 kasperbirch1 commented Nov 9, 2023

Link to issue

https://reload.atlassian.net/browse/DDFSOEG-584

Description

This Pull Request addresses a bug where toggling the checkbox by clicking the associated label or the custom-styled checkbox icon was not functioning as intended.

The issue was introduced in a recent commit 3ab8f4f which affected the checkbox's id association with the label's htmlFor property, thereby breaking the expected toggle behavior.

I have also improved the dashboard tests to confirm working checkboxes

Screenshot of the result

Skaermoptagelse.2023-11-09.kl.15.31.35.mov

Copy link
Contributor

@JacobArrow JacobArrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🔥

@kasperbirch1 kasperbirch1 merged commit bb6b623 into danskernesdigitalebibliotek:develop Nov 10, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants