-
-
Notifications
You must be signed in to change notification settings - Fork 518
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
XWIKI-21375: Videos on the help page don't have alternatives #2466
Conversation
* Changed the list items to anchors sending to different documentation pages
* Added a hint to explicitly set the text alternative of the videos
I like it! I think it brings value and not just for impaired viewers but for everyone. |
I think this should be a link on xwiki.org since we also need a link on https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/ BTW shouldn't we have the same vides on https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/ than on your screenshot? I see only 4 at https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/ which is weird. |
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.
I have some doubts regarding the note. Also, the code style is quite inconsistent and I think there is missing escaping, see the detailed comments.
...m-core/xwiki-platform-help/xwiki-platform-help-ui/src/main/resources/Help/Videos/WebHome.xml
Outdated
Show resolved
Hide resolved
...m-core/xwiki-platform-help/xwiki-platform-help-ui/src/main/resources/Help/Videos/WebHome.xml
Outdated
Show resolved
Hide resolved
...m-core/xwiki-platform-help/xwiki-platform-help-ui/src/main/resources/Help/Videos/WebHome.xml
Outdated
Show resolved
Hide resolved
...m-core/xwiki-platform-help/xwiki-platform-help-ui/src/main/resources/Help/Videos/WebHome.xml
Outdated
Show resolved
Hide resolved
...m-core/xwiki-platform-help/xwiki-platform-help-ui/src/main/resources/Help/Videos/WebHome.xml
Outdated
Show resolved
Hide resolved
@@ -192,6 +192,7 @@ help.videos.videoCard5.topic2=Learn how to use your application | |||
help.videos.videoCard6.title=Add / Remove Extensions | |||
help.videos.videoCard6.topic1=Discover how to add/remove extensions using the Extension Manager | |||
help.videos.videoCard6.topic2=Discover the XWiki Administration UI | |||
help.videos.hint=The video in this card is an alternative to the documentation behind those links: |
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.
I'm not sure a screen reader user is aware what "this card" is. Maybe rather something like:
help.videos.hint=The video in this card is an alternative to the documentation behind those links: | |
help.videos.hint=The following documentation links provide an alternative to the preceeding video: |
- but even then I'm not sure that it is clear to the user that there was a video, in particular as the iframe is marked with
role="presentation"
. What about putting this information in the title of the iframe and maybe even removing therole="presentation"
?
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.
Addressed in 016b9d7 👍
I decided to remove the presentation role, and add the hint as an 'aria-description' to the iframe. This way, it can be read out to AT users and it's clearly concerning the content of this iframe. Updated the L10N value accordingly.
'url': $xwiki.getURL('Help.Applications.WebHome'), | ||
'label': "$services.localization.render('help.videos.videoCard5.topic1')" |
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.
Why is the $xwiki.getURL
not in quotes but $services.localization.render
is?
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.
Inconsistency 👍 Addressed in ae18d59 by removing quotes around the label values
* Fixed code style
* Escaped previously unescaped string
* Removed the role='presentation' from the iframe * Moved the hint to a description of the iframe
* Fixed code style
* Updated one link
* Avoided breaking backward compatibility on the velocity macro 'helpVideoCard'
From what I could see, this page is custom content, none of the videos are the same.
👍 I chose to use the first one:
Updated in 29f8879 All comments so far have been addressed. |
hmm we might need to review this. I don't see how we would have enough manpower to have 2 sets of videos. We also need to check how much outdated both sets are.
I think the second one has more value but I've now linked the first one to the second so I believe it's now ok, see https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/GettingStarted/CreatingABasicApp?viewer=changes&rev1=7.2&rev2=8.1& Thanks |
@@ -192,6 +192,7 @@ help.videos.videoCard5.topic2=Learn how to use your application | |||
help.videos.videoCard6.title=Add / Remove Extensions | |||
help.videos.videoCard6.topic1=Discover how to add/remove extensions using the Extension Manager | |||
help.videos.videoCard6.topic2=Discover the XWiki Administration UI | |||
help.videos.hint=The following documentation links provide an alternative to this video. |
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.
Maybe we should make this an actual description of the video? Like saying that you see a screencast showcasing the features that are listed below without audio (which could be interesting information for a blind user)?
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.
Addressed in 758d90d 👍
<div class="videoCard-body"> | ||
<div class="videoCard-title"> | ||
$escapetool.xml($data.title) | ||
</div> | ||
<ul> | ||
#foreach ($topic in $data.topics) | ||
<li>$topic</li> | ||
<li>#if ($topic.url) | ||
<a href="$escapetool.html($topic.url)">$topic.label</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.
This needs to be $escapetool.xml
as $escapetool.html
doesn't escape {
. Same for all other uses of $escapetool.html
. Also, why is the label not escaped?
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.
Also, why is the label not escaped?
I went too fast when updating the definition of the topics. I thought I'd factorize the escaping but forgot to add it back.
👍 Addressed in 61140f9
<li>#if ($topic.url) | ||
<a href="$escapetool.html($topic.url)">$topic.label</a> | ||
#else | ||
$topic |
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.
Same here, the topic should be escaped.
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.
👍 Addressed in 61140f9
* Improved translation value
* Escaped properly strings in the velocity macro
Addressed all comments :) |
Jira
https://jira.xwiki.org/browse/XWIKI-21375
Forum discussion
Handle videos in the help page
PR Changes
View
We can see that now all list items under the videos are anchors that redirect to various sections of the documentation.
![21375-afterPR](https://private-user-images.githubusercontent.com/28761965/274208622-4f62a2d9-fbc0-42e5-b5de-45744bcbbd99.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg0MTYwNjgsIm5iZiI6MTcxODQxNTc2OCwicGF0aCI6Ii8yODc2MTk2NS8yNzQyMDg2MjItNGY2MmEyZDktZmJjMC00MmU1LWI1ZGUtNDU3NDRiY2JiZDk5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE1VDAxNDI0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYzYjdmY2YzMGQzMDY1Y2MxZDFiMTdiYjNlZWMwOTA0NjY4OWNlY2I0NjRiNTk3N2YwOTRhZWU0NjM2MGIwYWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.oI4ntbXAnsDpLf_OZPHXIwBjMoGlWh-7LaEyt9cLb7U)
Notes
The way I implemented the solution we converged to in the discussion is based upon this example in a proposal of atomic rule for ACT. There is no designated role for alternative to videos in aria, we rely on the user's understanding.
I decided to add a non-visual hint to highlight the bond between the video and its text counterpart. This element would clutter the visual UI, and fills a role for AT users that presentation handles visually.
Here are all the pairs label + URL added in this PR: