Skip to content

Commit 561f505

Browse files
Andrew Gormleyjeremystretch
authored andcommitted
fixed #16853: accessibility issues
1 parent 7b0cdca commit 561f505

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

netbox/netbox/tables/columns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def render(self, record, table, **kwargs):
275275
if len(self.actions) == 1 or (self.split_actions and idx == 0):
276276
dropdown_class = attrs.css_class
277277
button = (
278-
f'<a class="btn btn-sm btn-{attrs.css_class}" href="{url}{url_appendix}" type="button">'
278+
f'<a class="btn btn-sm btn-{attrs.css_class}" href="{url}{url_appendix}" type="button" aria-label="{attrs.title}">'
279279
f'<i class="mdi mdi-{attrs.icon}"></i></a>'
280280
)
281281

netbox/templates/base/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
>
1212
<head>
1313
<meta charset="UTF-8" />
14-
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width, viewport-fit=cover" />
14+
<meta name="viewport" content="initial-scale=1, maximum-scale=5, width=device-width, viewport-fit=cover" />
1515
<meta name="htmx-config" content='{"scrollBehavior": "auto"}'>
1616

1717
{# Page title #}

netbox/templates/dcim/rack_elevation_list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<a href="{% url 'dcim:rack_list' %}{% querystring request %}" class="btn btn-primary">
1212
<i class="mdi mdi-format-list-checkbox"></i> {% trans "View List" %}
1313
</a>
14-
<select class="btn btn-outline-secondary no-ts rack-view">
14+
<select class="btn btn-outline-secondary no-ts rack-view" aria-label="Select rack view">
1515
<option value="images-and-labels" selected="selected">{% trans "Images and Labels" %}</option>
1616
<option value="images-only">{% trans "Images only" %}</option>
1717
<option value="labels-only">{% trans "Labels only" %}</option>

0 commit comments

Comments
 (0)