Skip to content
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

Changes templates to provide button roles, labels and labelled-by att… #795

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions views/js/controller/creator/templates/itemref.tpl
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<li id='{{identifier}}' data-uri='{{href}}' class='itemref'>
<span class='title truncate'>{{label}}</span>
<span id='{{identifier}}-title' class='title truncate'>{{label}}</span>
<div class="actions">
<div class="tlb">
<div class="tlb-top">
<span class="tlb-box">
<span class="tlb-bar">
<span class="tlb-start"></span>
<span class="tlb-group">
<a href="#" class="tlb-button-off property-toggler" title="{{__ 'Item Reference Properties'}}"><span class="icon-settings"></span></a>
<a aria-describedby='{{identifier}}-title' href="#" class="tlb-button-off property-toggler" title="{{__ 'Item Reference Properties'}}"role="button" aria-label="{{__ 'Item Reference Properties'}}"><span class="icon-settings"></span></a>
<span class="tlb-separator"></span>
<a href="#" class="tlb-button-off move-up" title="{{__ 'Move Up'}}"><span class="icon-up"></span></a>
<a href="#" class="tlb-button-off move-down" title="{{__ 'Move Down'}}"><span class="icon-down"></span></a>
<a aria-describedby='{{identifier}}-title' href="#" class="tlb-button-off move-up" title="{{__ 'Move Up'}}"role="button" aria-label="{{__ 'Move Up'}}"><span class="icon-up"></span></a>
<a aria-describedby='{{identifier}}-title' href="#" class="tlb-button-off move-down" title="{{__ 'Move Down'}}"role="button" aria-label="{{__ 'Move Down'}}"><span class="icon-down"></span></a>
<span class="tlb-separator"></span>
<a href="#" class="tlb-button-off" title="{{__ 'Remove Item Reference'}}" data-delete=":parent .itemref"><span class="icon-bin"></span></a>
<a aria-describedby='{{identifier}}-title' href="#" class="tlb-button-off" title="{{__ 'Remove Item Reference'}}"role="button" aria-label="{{__ 'Remove Item Reference'}}" data-delete=":parent .itemref"><span class="icon-bin"></span></a>
</span>
<span class="tlb-end"></span>
</span>
Expand Down
4 changes: 2 additions & 2 deletions views/js/controller/creator/templates/rubricblock.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
<span class="tlb-bar">
<span class="tlb-start"></span>
<span class="tlb-group">
<a href="#" class="tlb-button-off property-toggler" title="{{__ 'Rubric Block Properties'}}"><span class="icon-settings"></span></a>
<a href="#" class="tlb-button-off property-toggler" title="{{__ 'Rubric Block Properties'}}"role="button" aria-label="{{__ 'Rubric Block Properties'}}"><span class="icon-settings"></span></a>
<span class="tlb-separator"></span>
<a href="#" class="tlb-button-off" title="{{__ 'Remove Rubric Block'}}" data-delete=":parent .rubricblock"><span class="icon-bin"></span></a>
<a href="#" class="tlb-button-off" title="{{__ 'Remove Rubric Block'}}" role="button" aria-label="{{__ 'Remove Rubric Block'}}" data-delete=":parent .rubricblock"><span class="icon-bin"></span></a>
</span>
<span class="tlb-end"></span>
</span>
Expand Down
10 changes: 5 additions & 5 deletions views/js/controller/creator/templates/section.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
<span class="tlb-bar">
<span class="tlb-start"></span>
<span class="tlb-group">
<a href="#" class="tlb-button-off rub-toggler" title="{{__ 'Manage Rubric Blocks'}}" data-toggle="#rublocks-{{identifier}}" ><span class="icon-rubric"></span></a>
<a href="#" class="tlb-button-off rub-toggler" title="{{__ 'Manage Rubric Blocks'}}" role="button" aria-label="{{__ 'Manage Rubric Blocks'}}" data-toggle="#rublocks-{{identifier}}" ><span class="icon-rubric"></span></a>
<span class="tlb-separator"></span>
<a href="#" class="tlb-button-off property-toggler" title="{{__ 'Section Properties'}}"><span class="icon-settings"></span></a>
<a href="#" class="tlb-button-off property-toggler" title="{{__ 'Section Properties'}}"role="button" aria-label="{{title}} Properties"><span class="icon-settings"></span></a>
<span class="tlb-separator"></span>
<a href="#" class="tlb-button-off move-up disabled" title="{{__ 'Move Up'}}"><span class="icon-up"></span></a>
<a href="#" class="tlb-button-off move-down disabled" title="{{__ 'Move Down'}}"><span class="icon-down"></span></a>
<a href="#" class="tlb-button-off move-up disabled" title="{{__ 'Move Up'}}"role="button" aria-label="Move Up {{title}}"><span class="icon-up"></span></a>
<a href="#" class="tlb-button-off move-down disabled" title="{{__ 'Move Down'}}"role="button" aria-label="Move Down {{title}}"><span class="icon-down"></span></a>
<span class="tlb-separator"></span>
<a href="#" class="tlb-button-off disabled" title="{{__ 'Remove Section'}}" data-delete=":parent .section"><span class="icon-bin"></span></a>
<a href="#" class="tlb-button-off disabled" title="{{__ 'Remove Section'}}"role="button" aria-label="Remove {{title}}" data-delete=":parent .section"><span class="icon-bin"></span></a>
</span>
<span class="tlb-end"></span>
</span>
Expand Down
8 changes: 4 additions & 4 deletions views/js/controller/creator/templates/testpart.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
<span class="tlb-bar">
<span class="tlb-start"></span>
<span class="tlb-group">
<a href="#" class="tlb-button-off property-toggler" title="Test Part Properties"><span class="icon-settings"></span></a>
<a href="#" class="tlb-button-off property-toggler" title="Test Part Properties"role="button" aria-label="Test Part Properties"><span class="icon-settings"></span></a>
<span class="tlb-separator"></span>
<a href="#" class="tlb-button-off move-up" title="Move Up"><span class="icon-up"></span></a>
<a href="#" class="tlb-button-off move-down" title="Move Down"><span class="icon-down"></span></a>
<a href="#" class="tlb-button-off move-up" title="Move Up"role="button" aria-label="Move Up {{identifier}}"><span class="icon-up"></span></a>
<a href="#" class="tlb-button-off move-down" title="Move Down"role="button" aria-label="Move Down {{identifier}}"><span class="icon-down"></span></a>
<span class="tlb-separator"></span>
<a href="#" class="tlb-button-off" title="Remove Test Part" data-delete="#{{identifier}}"><span class="icon-bin"></span></a>
<a href="#" class="tlb-button-off" title="Remove Test Part" role="button" aria-label="Remove Test Part {{identifier}}" data-delete="#{{identifier}}"><span class="icon-bin"></span></a>
</span>
<span class="tlb-end"></span>
</span>
Expand Down