-
Notifications
You must be signed in to change notification settings - Fork 9
Feature/CSL-2007: group1 enchanced tooltips #323
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
Conversation
- add content for 'view' and 'readaloud' popovers - switch to popover styles and classes
Converted tooltips to popovers for settings, wordbank, switch, context, book_actions, and activity.
|
After moving the content from Kristen's google docs into the tooltips template, there are no popup tooltips left. All are popover dialogs now. In terms of having two templates, one for tooltips, and another for popover dialogs, I suggest moving the modifications made in Kristen's documents are listed in the first two comments in the JIRA:
|
|
@klown Already working down a similar path for splitting the templates up, so far:
|
|
@mbrambilla Since you have already split the templates and are working on the styles and behaviours, I will work on changing the model to reflect the kind of tooltip (popover vs. tooltip) and adjust the code accordingly. Regarding the chaining functionality, that is not needed for this round for the so-called "group 1 enhanced tooltips", since there is no tour with these tooltips. But, if it's convenient for you to work on now, all the better in the long run. |
… start of chainable tour
The `kind` field denotes whether the tip is a popup tooltip or a dialog popover. The latter are associated with "robust tooltips" and tours.
- the `kind` of tip -- tooltip vs dialog -- is not used anywhere; remove for now. - fix the name of the settings teacher resource to link to in the `popover_tour.html` template.
The migrations cancel each other. The first adds a `kind` field to the `TipType` model while the second removes it.
|
I have merged your changes with mine, and after some some minor modifications, the single popover-dialog tours work for the most part. There are some issues listed below. I will continue to investigate. Also, I made a change to the There are three current issues: the popover arrow, the read-aloud button in the popover title bar, and the Popover arrow:
Read-aloud button in popover titlebar:
No shows:
|
| <div class="col"> | ||
| {% if clusive_user.role == 'TE' or clusive_user.role == 'PA' and has_teacher_resource %} | ||
| <a href="{% url 'res_reader' resource_id='SSETTINGS' %}">Learn more<span class="sr-only"> about settings</span></a> | ||
| <a href="{% url 'res_reader' resource_id='SETTINGS' %}">Learn more<span class="sr-only"> about settings</span></a> |
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.
@mbrambilla it actually is "SSETTINGS". I don't know why. Logging in as "theresateacher', on the Q/A site:
- https://clusive.qa.cast.org/res_reader/SSETTINGS shows the resource.
- https://clusive.qa.cast.org/res_reader/SETTINGS shows "Server Error".
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.
Could be a typo, but it is consistent with the resources.json
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.
It was one of the issues I ran into last week -- not finding the resource -- and fixed with this commit:
e231b52
… if only one in chain
|
Should resolve most of the issues, but does introduce a new one. New issue is that when using TTS to read the 'Read Aloud' popover, the positioning get messed up since the sidebar TTS play button becomes invisible. Looking into it now.
The usability of these popovers is very problematic on short screen due to the height of the popovers, so positioning can be off, have some strange repositioning when scrolling, or have the arrow be in the wrong place. Have not tested on mobile devices yet. Also, screen reader a11y has taken a hit since the popovers are no longer within an |
…S. Stopgap for refocus of control
|
I can confirm that you fixed the jump in position when clicking the read-aloud button on the "Read Aloud" popover. 🎉 FWIW, the way I get the popover to show up is to temporarily change the first of Regarding the issues I cited above:
|
|
@mbrambilla, regarding:
The APG has some advice for where to put the focus initially when a dialog is popped open. I looked at the first NOTE in their keyboard interaction section. It lists a number of places where focus could go including:
A possibility for our popovers is to put focus on the main tip text, but that would require tabbing backwards to get to the video link. My current feeling is to put it on the popover heading. That would be the
I've tried that and it seems an intuitive interaction as a sighted user (sample size of one ;-) ), but I have yet to test with a screen reader. I'll do that next. What do you think? |
|
I went ahead and committed the changes that I noted above regarding where focus is when the popover is shown initially. I tested it on Safari/VoiceOver and it seemed okay. But it's easily changed if there is a better way. |
|
The focus on the Additionally, if a This reading of the entire popover is similar to what should occur with the tooltip version where they are placed within an The added focus statement is also needed because the Popovers are in |
|
Thanks for the explanation. I will revert the focusing markup and code. I made the assumption that screen readers would speak something along the lines of "Dialog, Word bank" when the dialog was shown, followed by speaking what is focused within that dialog. If the intended UX is that the entire dialog is spoken on open, then putting focus on the dialog container makes sense. Regarding the |
|
@bgoldowsky Since Kristin's comment in CSL-2040 about the order for the tour implies that some of the group 1 popovers appear for multiple targets, this PR may require changes. |
|
@klown ok - I'm thinking at this point it makes sense to wait for all of the tooltip stuff to be ready and merge to development in one shot rather than in the two separate groups. |
|
Thanks @bgoldowsky. In that case, I will close this PR and continue the work in the #328 PR |
|
Going forward, all of the work will be tracked in PR #328. Closing this PR. |
Place the content as given in Kristen's google documents and convert the popup tool-tips into popover dialogs.
JIRA: https://castudl.atlassian.net/browse/CSL-2007