-
Notifications
You must be signed in to change notification settings - Fork 18
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: Resolve title/altTitle discrepancy (fixes #535) #551
Conversation
Co-authored-by: Oliver Foster <oliver.foster@kineo.com>
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.
This is working as described thanks 👍
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.
👀 this seems to make sense. I think...
If an altTitle is set in the feedback object, then only the altTitle will be used as an aria label.
If no altTitle is set in the feedback object, then the course will visually display the feedback object title or the component title or use the global altFeedbackTitle as an aria label.
Co-authored-by: Oliver Foster <oliver.foster@kineo.com>
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.
👀
🎉 This PR is included in version 6.50.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Fixes #535
Fix
_feedback.title
and_feedback.altTitle
work._feedback.altTitle
, if set, will take precedence and the feedback title will be visually hidden.altTitle
from feedbackConfig() as it did not seem to be used in the Notify templates.The new behavior is as follows:
_feedback.altTitle
is set, this will be used as a title aria label. No visual title is displayed._feedback.title
is set and_feedback.altTitle
is not set, a title is displayed with this value._feedback.title
nor_feedback.altTitle
are set, a title is displayed with the component's title._globals._accessibility.altFeedbackTitle
is used as an aria label and no visual title is displayed.The precedence basically goes:
_feedback.altTitle
_feedback.title
_globals._accessibility.altFeedbackTitle
Related
This removes the
_feedback.altTitle
from the sample FW course. Otherwise, by default, the sample course does not show a feedback title due to the presence of the alt titles.adaptlearning/adapt_framework#3567