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

Item option text doesn't support an accessible alternative #172

Closed
kirsty-hames opened this issue Oct 25, 2023 · 1 comment · Fixed by #173
Closed

Item option text doesn't support an accessible alternative #172

kirsty-hames opened this issue Oct 25, 2023 · 1 comment · Fixed by #173

Comments

@kirsty-hames
Copy link
Contributor

Subject of the issue

The item text property sets both the option text displayed on screen as well as the aria-label. In the instance you want to provide an alternative text, for example, to specify how a word should be pronounced. IT to read as 'eye tea' not 'it'.

Most text properties in Adapt have an alternative property to override the property setting the on screen text.

Expected behaviour

Provide an optional altText property to set the item aria-label. If no altText is set, then text will set the aria-label as per the current functionality.

Same issue raised for MCQ - adaptlearning/adapt-contrib-mcq#209

@kirsty-hames kirsty-hames self-assigned this Oct 25, 2023
@kirsty-hames kirsty-hames moved this from New to Assigned in adapt_framework: The TODO Board Oct 25, 2023
@kirsty-hames kirsty-hames moved this from Assigned to Needs Reviewing in adapt_framework: The TODO Board Oct 25, 2023
joe-allen-89 pushed a commit that referenced this issue Oct 26, 2023
* add item altText property

* add altText property to schema

* add altText property to schema

* add altText example

* Update README

* Normalise altText

Co-authored-by: Oliver Foster <[email protected]>

---------

Co-authored-by: Oliver Foster <[email protected]>
@github-project-automation github-project-automation bot moved this from Needs Reviewing to Recently Released in adapt_framework: The TODO Board Oct 26, 2023
github-actions bot pushed a commit that referenced this issue Oct 26, 2023
# [7.4.0](v7.3.10...v7.4.0) (2023-10-26)

### Update

* alternative item option text added (fixes #172)  (#173) ([5102451](5102451)), closes [#172](#172) [#173](#173)
@github-actions
Copy link

🎉 This issue has been resolved in version 7.4.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging a pull request may close this issue.

1 participant