From 95c95bb01240e1ac9c217915d74ea07e58bf2135 Mon Sep 17 00:00:00 2001 From: Andrew Gormley Date: Wed, 24 Jul 2024 21:33:57 +0100 Subject: [PATCH 1/4] fixed 16852: misc accessbility problems --- netbox/templates/base/layout.html | 24 +++++++++---------- netbox/templates/dcim/inc/rack_elevation.html | 2 +- netbox/templates/extras/dashboard/widget.html | 2 ++ netbox/templates/generic/bulk_import.html | 2 +- .../templates/helpers/table_config_form.html | 8 +++---- 5 files changed, 20 insertions(+), 18 deletions(-) diff --git a/netbox/templates/base/layout.html b/netbox/templates/base/layout.html index cb6dc4dfcc..8106e042d2 100644 --- a/netbox/templates/base/layout.html +++ b/netbox/templates/base/layout.html @@ -147,40 +147,40 @@

{% block footer_links %} {# Documentation #}
  • - - + +
  • {# REST API #}
  • - - + +
  • {# API docs #}
  • - - + +
  • {# GraphQL API #} {% if config.GRAPHQL_ENABLED %}
  • - - + +
  • {% endif %} {# GitHub #}
  • - - + +
  • {# NetDev Slack #}
  • - - + +
  • {% endblock footer_links %} diff --git a/netbox/templates/dcim/inc/rack_elevation.html b/netbox/templates/dcim/inc/rack_elevation.html index 03a847e33c..5ab6a3f7df 100644 --- a/netbox/templates/dcim/inc/rack_elevation.html +++ b/netbox/templates/dcim/inc/rack_elevation.html @@ -1,6 +1,6 @@ {% load i18n %}
    - +
    diff --git a/netbox/templates/extras/dashboard/widget.html b/netbox/templates/extras/dashboard/widget.html index 51b40342e2..cd57cb56d5 100644 --- a/netbox/templates/extras/dashboard/widget.html +++ b/netbox/templates/extras/dashboard/widget.html @@ -15,6 +15,7 @@ hx-target="#htmx-modal-content" data-bs-toggle="modal" data-bs-target="#htmx-modal" + aria-label="{{ widget.title }} widget configuration" > @@ -28,6 +29,7 @@ hx-target="#htmx-modal-content" data-bs-toggle="modal" data-bs-target="#htmx-modal" + aria-label="Close {{ widget.title }} widget" > diff --git a/netbox/templates/generic/bulk_import.html b/netbox/templates/generic/bulk_import.html index 8514bf9006..967265858b 100644 --- a/netbox/templates/generic/bulk_import.html +++ b/netbox/templates/generic/bulk_import.html @@ -145,7 +145,7 @@

    {% trans "Field Options" %}

    {{ field.label }} {% endif %} {% if field.STATIC_CHOICES %} - +