-
Notifications
You must be signed in to change notification settings - Fork 59
Presentation updates #16
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 from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,3 +30,7 @@ | |
| .pb-dashboard table .avg-row td.desc { | ||
| font-style: italic; | ||
| } | ||
|
|
||
| .pb-dashboard-visual { | ||
| text-align: center; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,16 +42,30 @@ <h2>{{display_name}}</h2> | |
| {% for mcq in block.mcqs %} | ||
| <tr> | ||
| <th class="desc">{{ mcq.display_name }}</th> | ||
| <td class="value" {% if mcq.color %}style="border-right-color: {{mcq.color}};"{% endif %}> | ||
| {% if mcq.value %}{{ mcq.value }}{% endif %} | ||
| <td class="value" | ||
| {% if mcq.color %} style="border-right-color: {{mcq.color}};"{% endif %} | ||
| {% if not show_numbers %} | ||
| {% if mcq.value %} aria-label="Score: {{mcq.value}}" {% else %} aria-label="{% trans 'No value yet' %}" {%endif%} | ||
| {% endif %} | ||
| > | ||
| {% if mcq.value and show_numbers %} | ||
| {{ mcq.value }} | ||
| {% endif %} | ||
| </td> | ||
| </tr> | ||
| {% endfor %} | ||
| {% if block.has_average %} | ||
| <tr class="avg-row"> | ||
| <th class="desc">{% trans "Average" %}</th> | ||
| <td class="value" {% if block.average_color %}style="border-right-color: {{block.average_color}};"{% endif %}> | ||
| {{ block.average|floatformat }} | ||
| <th class="desc">{{ average_label }}</th> | ||
| <td class="value" | ||
| {% if block.average_color %} style="border-right-color: {{block.average_color}};"{% endif %} | ||
| {% if not show_numbers %} | ||
| {% if block.average %} aria-label="Score: {{block.average|floatformat}}" {% else %} aria-label="{% trans 'No value yet' %}" {%endif%} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @e-kolpakov see above comment There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @e-kolpakov @antoviaque this is the only a11y issue found in Mark's review. Can you guys submit a PR to fix it asap? Thanks!
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @sarina Sure! Do you want it this week, or can it be done in next week's sprint? I would prefer the later if possible, as there will also likely be some additional follow-up fixes/improvements from Harvard, this way we could do everything at once. But let me know. Thanks for the review @cptvitamin There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Next week is fine - "ASAP" as in, "as soon as prioritization possible" :) On Thu, Apr 30, 2015 at 12:58 AM, Xavier Antoviaque <
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @sarina Ok, perfect : ) Thank you! |
||
| {% endif %} | ||
| > | ||
| {% if show_numbers %} | ||
| {{ block.average|floatformat }} | ||
| {% endif %} | ||
| </td> | ||
| </tr> | ||
| {% endif %} | ||
|
|
||
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.
@e-kolpakov I've never seen anyone try to use
aria-labelon atdelement, and I don't blame you for trying since the spec says it is allowed. However, I wanted to perform a quick implementation test for using aria-label on a td element and I found that only Voiceover will read thearia-label, and only if there is an explicit value in thetdelement, and it reads both. If the cell is empty, it ignores thearia-label. Testing in NVDA and JAWS revealed that only explicittdvalues are read.aria-labelsare ignored.I recommend using off-screen text (class=sr) inside the table cells in this use case.