Quellcode durchsuchen

Fixes #22532: Ensure all empty table headers have an ARIA label (#22545)

Jeremy Stretch vor 1 Woche
Ursprung
Commit
76f82989bf

+ 1 - 1
netbox/extras/tables/tables.py

@@ -424,7 +424,7 @@ class NotificationTable(NetBoxTable):
         orderable=False,
         attrs={
             'td': {'class': 'w-1'},
-            'th': {'class': 'w-1'},
+            'th': {'class': 'w-1', 'aria-label': _('Type')},
         },
         verbose_name=''
     )

+ 3 - 0
netbox/netbox/tables/columns.py

@@ -248,6 +248,9 @@ class ActionsColumn(tables.Column):
         direct button link and icon (default: True)
     """
     attrs = {
+        'th': {
+            'aria-label': _('Actions'),
+        },
         'td': {
             'class': 'text-end text-nowrap noprint p-1'
         }

+ 1 - 1
netbox/templates/core/configrevision_restore.html

@@ -36,7 +36,7 @@
             <th scope="col">{% trans "Parameter" %}</th>
             <th scope="col">{% trans "Current Value" %}</th>
             <th scope="col">{% trans "New Value" %}</th>
-            <th scope="col"></th>
+            <th scope="col" aria-label="{% trans "Changed" %}"></th>
           </tr>
         </thead>
         <tbody>

+ 1 - 1
netbox/templates/dcim/inc/panels/inventory_items.html

@@ -18,7 +18,7 @@
         <th>{% trans "Name" %}</th>
         <th>{% trans "Label" %}</th>
         <th>{% trans "Role" %}</th>
-        <th></th>
+        <th aria-label="{% trans "Actions" %}"></th>
       </tr>
     </thead>
     <tbody>

+ 1 - 1
netbox/templates/dcim/panels/component_inventory_items.html

@@ -8,7 +8,7 @@
         <th>{% trans "Name" %}</th>
         <th>{% trans "Label" %}</th>
         <th>{% trans "Role" %}</th>
-        <th></th>
+        <th aria-label="{% trans "Actions" %}"></th>
       </tr>
     </thead>
     <tbody>

+ 1 - 1
netbox/templates/dcim/panels/interface_wireless.html

@@ -6,7 +6,7 @@
     <table class="table table-hover attr-table">
       <thead>
         <tr class="border-bottom">
-          <th></th>
+          <th aria-label="{% trans "Attribute" %}"></th>
           <th>{% trans "Local" %}</th>
           {% if peer %}
             <th>{% trans "Peer" %}</th>

+ 1 - 1
netbox/templates/dcim/virtualchassis_edit.html

@@ -66,7 +66,7 @@
                     <th>{% trans "Serial" %}</th>
                     <th>{% trans "Position" %}</th>
                     <th>{% trans "Priority" %}</th>
-                    <th></th>
+                    <th aria-label="{% trans "Actions" %}"></th>
                 </tr>
             </thead>
             <tbody>

+ 1 - 1
netbox/templates/extras/inc/script_list_content.html

@@ -33,7 +33,7 @@
               <th>{% trans "Description" %}</th>
               <th>{% trans "Last Run" %}</th>
               <th>{% trans "Status" %}</th>
-              <th></th>
+              <th aria-label="{% trans "Actions" %}"></th>
             </tr>
           </thead>
           <tbody>

+ 1 - 1
netbox/templates/ipam/inc/panels/fhrp_groups.html

@@ -24,7 +24,7 @@
         <th>{% trans "Protocol" %}</th>
         <th>{% trans "Virtual IPs" %}</th>
         <th>{% trans "Priority" %}</th>
-        <th></th>
+        <th aria-label="{% trans "Actions" %}"></th>
       </tr>
     </thead>
     <tbody>

+ 1 - 1
netbox/templates/ipam/panels/fhrp_groups.html

@@ -10,7 +10,7 @@
         <th>{% trans "Protocol" %}</th>
         <th>{% trans "Virtual IPs" %}</th>
         <th>{% trans "Priority" %}</th>
-        <th></th>
+        <th aria-label="{% trans "Actions" %}"></th>
       </tr>
     </thead>
     <tbody>