0001-templates-add-aria-attributes-to-steps-markup-40921.patch
templates/wcs/front/formdata_steps.html | ||
---|---|---|
1 |
<header id="steps" class="wcs-steps steps-{{page_labels|length}}"> |
|
1 |
{% load i18n %} |
|
2 |
<header id="steps" class="wcs-steps steps-{{page_labels|length}}" |
|
3 |
role="progressbar" |
|
4 |
aria-valuenow="{{ current_page_no }}" |
|
5 |
aria-valuemin="1" |
|
6 |
aria-valuemax="{{ page_labels|length }}" |
|
7 |
{% if current_page_label %} |
|
8 |
aria-valuetext="{% blocktrans %}Step #{{ current_page_no }}: {{ current_page_label }}{% endblocktrans %}" |
|
9 |
{% else %} |
|
10 |
aria-valuetext="{% blocktrans %}Step #{{ current_page_no }}{% endblocktrans %}" |
|
11 |
{% endif %} |
|
12 |
> |
|
2 | 13 |
<ol class="wcs-steps--list"> |
3 | 14 |
{% for page_label in page_labels %} |
4 | 15 |
{% spaceless %} |
5 |
- |