Added aria-hidden=true to empty <th> across admin

pull/11636/head
Jaivignesh-afk 2024-02-12 21:38:01 +05:30
rodzic bfa29201c3
commit 7e7b92aa64
7 zmienionych plików z 9 dodań i 9 usunięć

Wyświetl plik

@ -24,7 +24,7 @@ exports[`wagtail.contrib.typed_table_block.blocks.TypedTableBlock it renders cor
<div class="typed-table-block__wrapper">
<table>
<thead>
<tr><th></th><th><input type="hidden" name="mytable-column-0-type" value="test_block_a"><input type="hidden" name="mytable-column-0-order" value="0"><button type="button" class="button button-secondary button-small button--icon text-replace prepend-column" aria-label="Insert column" title="Insert column">
<tr><th aria-hidden="true"></th><th><input type="hidden" name="mytable-column-0-type" value="test_block_a"><input type="hidden" name="mytable-column-0-order" value="0"><button type="button" class="button button-secondary button-small button--icon text-replace prepend-column" aria-label="Insert column" title="Insert column">
<svg class="icon icon-plus icon" aria-hidden="true"><use href="#icon-plus"></use></svg>
</button><input type="text" name="mytable-column-0-heading" class="column-heading" placeholder="Column heading"><button type="button" class="button button-secondary button-small button--icon text-replace no delete-column" aria-label="Delete column" title="Delete column">
<svg class="icon icon-bin icon" aria-hidden="true"><use href="#icon-bin"></use></svg>
@ -130,7 +130,7 @@ exports[`wagtail.contrib.typed_table_block.blocks.TypedTableBlock setError passe
<div class="typed-table-block__wrapper">
<table>
<thead>
<tr><th></th><th><input type="hidden" name="mytable-column-0-type" value="test_block_a"><input type="hidden" name="mytable-column-0-order" value="0"><button type="button" class="button button-secondary button-small button--icon text-replace prepend-column" aria-label="Insert column" title="Insert column">
<tr><th aria-hidden="true"></th><th><input type="hidden" name="mytable-column-0-type" value="test_block_a"><input type="hidden" name="mytable-column-0-order" value="0"><button type="button" class="button button-secondary button-small button--icon text-replace prepend-column" aria-label="Insert column" title="Insert column">
<svg class="icon icon-plus icon" aria-hidden="true"><use href="#icon-plus"></use></svg>
</button><input type="text" name="mytable-column-0-heading" class="column-heading" placeholder="Column heading"><button type="button" class="button button-secondary button-small button--icon text-replace no delete-column" aria-label="Delete column" title="Delete column">
<svg class="icon icon-bin icon" aria-hidden="true"><use href="#icon-bin"></use></svg>
@ -236,7 +236,7 @@ exports[`wagtail.contrib.typed_table_block.blocks.TypedTableBlock setError shows
<div class="typed-table-block__wrapper">
<table>
<thead>
<tr><th></th><th><input type="hidden" name="mytable-column-0-type" value="test_block_a"><input type="hidden" name="mytable-column-0-order" value="0"><button type="button" class="button button-secondary button-small button--icon text-replace prepend-column" aria-label="Insert column" title="Insert column">
<tr><th aria-hidden="true"></th><th><input type="hidden" name="mytable-column-0-type" value="test_block_a"><input type="hidden" name="mytable-column-0-order" value="0"><button type="button" class="button button-secondary button-small button--icon text-replace prepend-column" aria-label="Insert column" title="Insert column">
<svg class="icon icon-plus icon" aria-hidden="true"><use href="#icon-plus"></use></svg>
</button><input type="text" name="mytable-column-0-heading" class="column-heading" placeholder="Column heading"><button type="button" class="button button-secondary button-small button--icon text-replace no delete-column" aria-label="Delete column" title="Delete column">
<svg class="icon icon-bin icon" aria-hidden="true"><use href="#icon-bin"></use></svg>

Wyświetl plik

@ -76,7 +76,7 @@ export class TypedTableBlock {
<table>
<thead>
<tr>
<th></th>
<th aria-hidden="true"></th>
<th class="control-cell">
<button type="button" class="button button-small button-secondary append-column" data-append-column>
${h(strings.ADD_COLUMN)}

Wyświetl plik

@ -26,7 +26,7 @@
{% for codename, short_label, long_label in formset.permission_types %}
<th title="{{ long_label }}">{{ short_label }}</th>
{% endfor %}
<th></th>
<th aria-hidden="true"></th>
</tr>
</thead>
<tbody id="id_{{ formset.prefix }}-FORMS">

Wyświetl plik

@ -17,7 +17,7 @@
<thead>
<tr>
<th>{% trans "Page" %}</th>
<th></th>
<th aria-hidden="true"></th>
</tr>
</thead>
<tbody id="id_{{ formset.prefix }}-FORMS">

Wyświetl plik

@ -81,7 +81,7 @@ class NavigateToChildrenColumn(BaseColumn):
return context
def render_header_html(self, parent_context):
return mark_safe("<th></th>")
return mark_safe("<th aria-hidden='true'></th>")
class PageTable(Table):

Wyświetl plik

@ -120,7 +120,7 @@
<thead>
<tr>
<th>{% trans "Name" %}</th>
<th></th>
<th aria-hidden="true"></th>
</tr>
</thead>
<tbody>

Wyświetl plik

@ -25,7 +25,7 @@
{% for identifier, short_label, long_label in formset.permission_types %}
<th title="{{ long_label }}">{{ short_label }}</th>
{% endfor %}
<th></th>
<th aria-hidden="true"></th>
</tr>
</thead>
<tbody id="id_{{ formset.prefix }}-FORMS">