Skip to content

Commit fce10c7

Browse files
Closes #17222: Improve visibility of notifications icon (#20035)
1 parent 0cf76bc commit fce10c7

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

netbox/templates/htmx/notifications.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
<div class="d-block text-secondary fs-5">{{ notification.event }} {{ notification.created|timesince }} {% trans "ago" %}</div>
1616
</div>
1717
<div class="col-auto">
18-
<a href="#" hx-get="{% url 'extras:notification_dismiss' pk=notification.pk %}" hx-target="closest .notifications" class="list-group-item-actions text-secondary" title="{% trans "Dismiss" %}">
18+
<a href="#" hx-get="{% url 'extras:notification_dismiss' pk=notification.pk %}" hx-target="closest .notifications" class="list-group-item-actions text-red" title="{% trans "Dismiss" %}">
1919
<i class="mdi mdi-close"></i>
2020
</a>
2121
</div>
2222
</div>
2323
</div>
2424
{% empty %}
25-
<div class="dropdown-item text-muted">
25+
<div class="dropdown-item disabled">
2626
{% trans "No unread notifications" %}
2727
</div>
2828
{% endfor %}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{% load i18n %}
22

33
<div class="d-flex ms-2">
4-
<button class="btn color-mode-toggle hide-theme-dark" title="{% trans "Enable dark mode" %}" data-bs-toggle="tooltip" data-bs-placement="bottom">
4+
<button class="nav-link color-mode-toggle hide-theme-dark fs-2 p-0 text-secondary" title="{% trans "Enable dark mode" %}" data-bs-toggle="tooltip" data-bs-placement="bottom">
55
<i class="mdi mdi-lightbulb"></i>
66
</button>
7-
<button class="btn color-mode-toggle hide-theme-light" title="{% trans "Enable light mode" %}" data-bs-toggle="tooltip" data-bs-placement="bottom">
7+
<button class="nav-link color-mode-toggle hide-theme-light fs-2 p-0 text-secondary" title="{% trans "Enable light mode" %}" data-bs-toggle="tooltip" data-bs-placement="bottom">
88
<i class="mdi mdi-lightbulb-on"></i>
99
</button>
1010
</div>

netbox/templates/inc/notification_bell.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{% if notifications %}
22
<span class="text-primary" id="notifications-alert" hx-swap-oob="true">
3-
<i class="mdi mdi-bell-badge"></i>
3+
<i class="mdi mdi-bell-ring"></i>
4+
<span class="badge bg-red"></span>
45
</span>
56
{% else %}
67
<span class="text-muted" id="notifications-alert" hx-swap-oob="true">

netbox/templates/inc/user_menu.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
{# Notifications #}
1313
{% with notifications=request.user.notifications.unread.exists %}
1414
<div class="dropdown">
15-
<a href="#" class="nav-link px-1" data-bs-toggle="dropdown" hx-get="{% url 'extras:notifications' %}" hx-target="next .notifications" aria-label="{% trans "Notifications" %}">
15+
<button class="nav-link fs-2 p-0" data-bs-toggle="dropdown" hx-get="{% url 'extras:notifications' %}" hx-target="next .notifications" aria-label="{% trans "Notifications" %}">
1616
{% include 'inc/notification_bell.html' %}
17-
</a>
17+
</button>
1818
<div class="dropdown-menu dropdown-menu-end dropdown-menu-arrow notifications"></div>
1919
</div>
2020
{% endwith %}

0 commit comments

Comments
 (0)