From 742cd0b5b604df62469e2ad35f1c15cda6ab71ec Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 25 Jun 2026 07:35:33 -0400 Subject: [PATCH] Fixes #22527: Notify screen reader of quick search updates (#22534) --- netbox/templates/htmx/table.html | 11 +++++++++++ netbox/templates/inc/table_controls_htmx.html | 3 +++ 2 files changed, 14 insertions(+) diff --git a/netbox/templates/htmx/table.html b/netbox/templates/htmx/table.html index 16e35f868..3d6193697 100644 --- a/netbox/templates/htmx/table.html +++ b/netbox/templates/htmx/table.html @@ -22,6 +22,17 @@
{{ table.rows|length }}
{% endif %} + {# Announce the updated result count to assistive technology #} + {% if not table.embedded %} +
+ {% blocktrans trimmed count count=table.page.paginator.count %} + {{ count }} result found + {% plural %} + {{ count }} results found + {% endblocktrans %} +
+ {% endif %} + {# Include the updated "save" link for the table configuration #} {% if table.config_params and not table.embedded %} {% trans "Save" %} diff --git a/netbox/templates/inc/table_controls_htmx.html b/netbox/templates/inc/table_controls_htmx.html index 672598848..e995ea95a 100644 --- a/netbox/templates/inc/table_controls_htmx.html +++ b/netbox/templates/inc/table_controls_htmx.html @@ -1,6 +1,9 @@ {% load helpers %} {% load i18n %} +{# Live region used to announce updated results (e.g. after a quick search) to assistive technology #} +
+