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

fix(NcCheckBoxRadioSwitch): do not toggle on a click on a link inside #6013

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

DorraJaouad
Copy link
Contributor

@DorraJaouad DorraJaouad commented Aug 23, 2024

… a link

☑️ Resolves

In rich text > tasks list, check boxes can have links

🖼️ Screenshots

🏚️ Before 🏡 After
link1 link-2

🏁 Checklist

  • ⛑️ Tests are included or are not applicable
  • 📘 Component documentation has been extended, updated or is not applicable
  • 3️⃣ Backport to next requested with a Vue 3 upgrade

… a link

Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
@DorraJaouad DorraJaouad added 3. to review Waiting for reviews feature: checkbox-radio-switch Related to the checkbox-radio-switch component labels Aug 23, 2024
@DorraJaouad DorraJaouad added this to the 8.17.1 milestone Aug 23, 2024
@DorraJaouad DorraJaouad self-assigned this Aug 23, 2024
@ShGKme
Copy link
Contributor

ShGKme commented Aug 23, 2024

But generally speaking, it is not valid to put an interactive element into another interactive element, and it fails a11y check

@ShGKme ShGKme added the bug Something isn't working label Aug 23, 2024
@ShGKme ShGKme changed the title fix(NcCheckBoxRadioSwitch): does not toggle checkbox when clicking on… fix(NcCheckBoxRadioSwitch): do not toggle on a click on a link inside Aug 23, 2024
@DorraJaouad
Copy link
Contributor Author

it is not valid to put an interactive element into another interactive element, and it fails a11y check

Agree 🙈 , maybe we need to alter component to be interactive on checkbox level only (at least needed for NcRichText)

Copy link
Contributor

@Antreesy Antreesy left a comment

Choose a reason for hiding this comment

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

🙈

@DorraJaouad DorraJaouad merged commit a7d404d into master Aug 23, 2024
19 checks passed
@DorraJaouad DorraJaouad deleted the fix/noid/link-in-checkbox branch August 23, 2024 16:08
@DorraJaouad
Copy link
Contributor Author

/backport to next

@susnux
Copy link
Contributor

susnux commented Aug 23, 2024

But generally speaking, it is not valid to put an interactive element into another interactive element, and it fails a11y check

I was thinking the same. Task lists should probably not put the content inside the checkbox (if not only text)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug Something isn't working feature: checkbox-radio-switch Related to the checkbox-radio-switch component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants