-
Notifications
You must be signed in to change notification settings - Fork 30
Update: provide alternative title text override for menu button ARIA label (fixes #214) #215
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
base: master
Are you sure you want to change the base?
Conversation
...altTitle is already a supported contentObject property used to provide an alternative on screen title for PLP adaptlearning/adapt-contrib-pageLevelProgress#208
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@kirsty-hames Looks good! Will need an update to the Box Menu migration scripts. I think that would be a separate ticket since we don't know what the exact release version would be?
Hi @joe-allen-89, do we have a defined practice for any PRs that require migration scripts? |
That's a terrifying (and probably true) comment. |
@kirsty-hames I'm currently looking at github actions to see if there's a way we can automatically raise an issue on the repo if the schema has been updated. Agree with what Brad said, as we don't really know the release version it would be better to have it as a seperate issue/PR (I think) |
This sounds problematic. Example: The schema changes are released on 1.0.0. The automation changes are added to 1.0.1 (or to master without release). When someone installs 1.0.0, the schema will change, but the automation tasks won't exist in that version. |
The other option is validation to prevent release if the schema has been updated but migration script hasn't, but will absolutely every schema change require a migration script? Possibly not. And still leaves us with having to come in and manually update the migration script as we release to ensure the versions are correct though. Hmm, bit more thought needed on that. |
That's a good point. I'm assuming instances where a new property is added that is either optional or a default value is provided, wouldn't require a migration script? If that's the case, do we need to add a migration script here as For PRs that do require a migration script, could this be handled within the same PR but we have two review phases? For example, |
Fixes #214
Update
titleAriaLabel
override provided to be read out by screen readers, instead oftitle
for the menu item button ARIA label. To be used whentitle
contains punctuation or html syntax that shouldn't be read. IftitleAriaLabel
isn't set, thentitle
is used to label the menu item button as default.Note, as per the issue comment, I'd initially suggested naming the override property
altTitle
for consistency with the alternative title created for question feedback. However contentObjectaltTitle
is already supported to provide an on screen alternative title for PLP. As the two use cases would require separate titles, I decided to create an separate property foraria-label
only.Example use case
title
: Being ‘on-spec’ (on screen text)titleAriaLabel
: Being on spec (aria-label
text with no punctuation, spelt as should be read)