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

New: Added support for _canShowCorrectness #213

Merged
merged 8 commits into from
Oct 28, 2024
Merged

New: Added support for _canShowCorrectness #213

merged 8 commits into from
Oct 28, 2024

Conversation

kirsty-hames
Copy link
Contributor

@kirsty-hames kirsty-hames commented Sep 25, 2024

part of adaptlearning/adapt_framework#3597

Allows option _canShowCorrectness instead of _canShowModelAnswer, to replace the associated toggle button and display correctness directly on the component.

New

  • Added support for _canShowCorrectness
  • .show-correctness widget class appended for consistency with other question components. Note, there's no associated styling currently.
  • Correctness ARIA applied to slider numbers. For consistency with other question items, selectable items are marked up with an aria-label consisting of correctness, selection and value.

slider_standard

Requires

ref adaptlearning/adapt-contrib-core#582

- prevents the component height expanding when icons are displayed
- consistent with Matching and Textinput answer container spacing
- for consistency with other question items, selectable items are marked up with an aria-label consisting of correctness, selection and value.
- set aria-hidden on correctness icons as correctness is covered by number aria-label instead.
- apply aria-disabled to clickable slider numbers once submitted. Note, Voiceover on Mac reads numbers as 'clickable'.
templates/slider.jsx Outdated Show resolved Hide resolved
Copy link
Contributor

@joe-allen-89 joe-allen-89 left a comment

Choose a reason for hiding this comment

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

👍

@oliverfoster oliverfoster merged commit a73560a into master Oct 28, 2024
github-actions bot pushed a commit that referenced this pull request Oct 28, 2024
# [4.6.0](v4.5.6...v4.6.0) (2024-10-28)

### New

* Added support for _canShowCorrectness (#213) ([a73560a](a73560a)), closes [#213](#213)
@oliverfoster oliverfoster deleted the issue/3597 branch October 28, 2024 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants