Skip to content

Conversation

illicitonion
Copy link
Member

@illicitonion illicitonion commented Aug 28, 2025

What does this change?

Different quizzes in the same page apparently share the same ID space for labels, even though they're in separate shadow roots.

Fortunately, the <input> tags are nested inside the <label> tags, so the for attribute isn't necessary, they implicitly bind to their contained tag.

So removing the for attribute here preserves the desired behaviour, while removing the confusion of which element is being targeted.

Common Theme?

  • common-theme/layouts/partials/multiple-choice.html

Fixes #1410

Different quizzes in the same page apparently share the same ID space
for labels, even though they're in separate shadow roots.

Fortunately, the `<input>` tags are nested inside the `<label>` tags, so
the `for` attribute isn't necessary, they implicitly bind to their
contained tag.

So removing the `for` attribute here preserves the desired behaviour,
while removing the confusion of which element is being targeted.
Copy link

netlify bot commented Aug 28, 2025

Deploy Preview for cyf-programming ready!

Name Link
🔨 Latest commit 32e209d
🔍 Latest deploy log https://app.netlify.com/projects/cyf-programming/deploys/68b08cb14943e30008349f52
😎 Deploy Preview https://deploy-preview-1560--cyf-programming.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 85 (🟢 up 4 from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 90 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

netlify bot commented Aug 28, 2025

Deploy Preview for cyf-piscine ready!

Name Link
🔨 Latest commit 32e209d
🔍 Latest deploy log https://app.netlify.com/projects/cyf-piscine/deploys/68b08cb1d6a405000851e3e3
😎 Deploy Preview https://deploy-preview-1560--cyf-piscine.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 84 (🔴 down 13 from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

netlify bot commented Aug 28, 2025

Deploy Preview for cyf-sdc ready!

Name Link
🔨 Latest commit 32e209d
🔍 Latest deploy log https://app.netlify.com/projects/cyf-sdc/deploys/68b08cb1644b9100082e1714
😎 Deploy Preview https://deploy-preview-1560--cyf-sdc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

netlify bot commented Aug 28, 2025

Deploy Preview for cyf-launch ready!

Name Link
🔨 Latest commit 32e209d
🔍 Latest deploy log https://app.netlify.com/projects/cyf-launch/deploys/68b08cb142357a0008126258
😎 Deploy Preview https://deploy-preview-1560--cyf-launch.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

netlify bot commented Aug 28, 2025

Deploy Preview for cyf-curriculum ready!

Name Link
🔨 Latest commit 32e209d
🔍 Latest deploy log https://app.netlify.com/projects/cyf-curriculum/deploys/68b08cb17e07f3000810e3d5
😎 Deploy Preview https://deploy-preview-1560--cyf-curriculum.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 95 (🔴 down 1 from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

netlify bot commented Aug 28, 2025

Deploy Preview for cyf-common ready!

Name Link
🔨 Latest commit 32e209d
🔍 Latest deploy log https://app.netlify.com/projects/cyf-common/deploys/68b08cb11364b60008713e30
😎 Deploy Preview https://deploy-preview-1560--cyf-common.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

netlify bot commented Aug 28, 2025

Deploy Preview for cyf-tracks ready!

Name Link
🔨 Latest commit 32e209d
🔍 Latest deploy log https://app.netlify.com/projects/cyf-tracks/deploys/68b08cb104bc560008480fdb
😎 Deploy Preview https://deploy-preview-1560--cyf-tracks.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

netlify bot commented Aug 28, 2025

Deploy Preview for cyf-itd ready!

Name Link
🔨 Latest commit 32e209d
🔍 Latest deploy log https://app.netlify.com/projects/cyf-itd/deploys/68b08cb1f534d50008576392
😎 Deploy Preview https://deploy-preview-1560--cyf-itd.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 98 (🟢 up 15 from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

Successfully merging this pull request may close these issues.

Bug: multiple multiple choice quizzes not capturing clicks correctly
1 participant