-
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
Missing titles for feedback Notify popups #535
Comments
Have you read #510 ? Does it cover your bug? |
@oliverfoster I've read through that ticket, but it's a bit confusing. There's also the comment from @kirsty-hames that was left unresolved, from what I can tell. If |
Is the supposition that It's probably either/or because the notify
Cahir implicitly resolved it with a subsequent pr I think. I was positive that there was a further comment from him, but I can't see it now. |
@oliverfoster I believe so, yeah. For instance, why is the title hidden completely if |
Weird. adapt-contrib-core/js/models/questionModel.js Line 286 in 6a0014b
It seems that adapt-contrib-core/js/models/questionModel.js Line 287 in 6a0014b
And that adapt-contrib-core/js/models/questionModel.js Line 290 in 6a0014b
Then going forward It then goes almost straight through tutor and notify view into the notifyPopup template adapt-contrib-core/templates/notifyPopup.hbs Lines 16 to 20 in 6a0014b
Is it that when It's difficult without stepping through the values in the debugger and seeing the output html. |
@oliverfoster Yes, that seems to be the explanation for all 3 cases under "Steps to reproduce" above. The only way that the title will appear is if |
We could probably solve it by changing the const isAltTitle = altTitle && !feedback.title && !this.get('title'); Where it's only true when there is no feedback title or component tile and there is a We could go one step further and force it to be true if |
I think I prefer this option. So, a developer / course creator would only set a value for Curious what others think, especially those involved with some of these recent changes. @kirsty-hames @cahirodoherty-learningpool @joe-allen-89 @joe-replin |
I think
I'd agree. Yes to removing any |
Would it make sense to treat
|
No, it would not make sense to use altTitle as an aria-label when there is a visible title. |
This makes sense to me. With the following amend to the last point. If |
@swashbuck are you fixing? |
Working on this now. I've already created an issue to remove the |
It would also be useful to update the feedback titles section in the Question Model wiki while we're at it. https://github.com/adaptlearning/adapt_framework/wiki/Question-model#feedback-titles |
Subject of the issue
I believe this is a bug, but let me know if it is intended behavior.
If
_feedback.altTitle
is not present, is an empty value, or is the same value as_feedback.title
, the title is not shown in the popup. However, if_feedback.altTitle
is different from_feedback.title
(either different text or just a single space character), then the title appears as expected.You can test this with the core course from running
adapt create course
and viewing the Question Components topic.This may be caused by #509 .
Your environment
Steps to reproduce
Configure the
_feedback
object in one of the following ways:_feedback.title
is the same as_feedback.altTitle
_feedback.altTitle
is removed completely_feedback.altTitle
is an empty string ""For example:
Expected behaviour
"Feedback" title should appear.
Actual behaviour
No title appears
The text was updated successfully, but these errors were encountered: