diff --git a/netbox/extras/tables/tables.py b/netbox/extras/tables/tables.py index 4a75d3771..477fb13a5 100644 --- a/netbox/extras/tables/tables.py +++ b/netbox/extras/tables/tables.py @@ -324,7 +324,7 @@ class NotificationTable(NetBoxTable): fields = ('pk', 'icon', 'object', 'object_type', 'event_type', 'created', 'read') default_columns = ('icon', 'object', 'object_type', 'event_type', 'created', 'read') row_attrs = { - 'data-unread': lambda record: not record.read, + 'data-read': lambda record: bool(record.read), } diff --git a/netbox/project-static/dist/netbox.css b/netbox/project-static/dist/netbox.css index 62c4b9af2..755e51f17 100644 Binary files a/netbox/project-static/dist/netbox.css and b/netbox/project-static/dist/netbox.css differ diff --git a/netbox/project-static/styles/custom/_notifications.scss b/netbox/project-static/styles/custom/_notifications.scss index 41feb0b8c..4777362aa 100644 --- a/netbox/project-static/styles/custom/_notifications.scss +++ b/netbox/project-static/styles/custom/_notifications.scss @@ -1,8 +1,9 @@ @use 'sass:map'; -// Highlight unread notifications -tr[data-unread=True] { +// Mute read notifications +tr[data-read=True] { td { - background-color: rgba(map.get($theme-colors, "green"), 0.15); + background-color: var(--#{$prefix}bg-surface-secondary); + color: $text-muted; } }