💄 Add cosmetic changes to notifications buttons (#5902)

This commit is contained in:
María Valderrama 2025-02-19 16:45:22 +01:00 committed by GitHub
parent e408bc9113
commit a3e74c55f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 2 deletions

View file

@ -89,13 +89,15 @@
[:div {:class (stl/css :header)} [:div {:class (stl/css :header)}
[:h3 {:class (stl/css :header-title)} (tr "dashboard.notifications")] [:h3 {:class (stl/css :header-title)} (tr "dashboard.notifications")]
(when (seq tgroups) (when (seq tgroups)
[:> icon-button* {:variant "ghost" [:> icon-button* {:class (stl/css :mark-all-as-read-button :notifications-button)
:variant "action"
:tab-index (if show? "0" "-1") :tab-index (if show? "0" "-1")
:aria-label (tr "label.mark-all-as-read") :aria-label (tr "label.mark-all-as-read")
:on-click on-read-all :on-click on-read-all
:icon "tick"}]) :icon "tick"}])
[:> icon-button* {:variant "ghost" [:> icon-button* {:class (stl/css :notifications-button)
:variant "action"
:tab-index (if show? "0" "-1") :tab-index (if show? "0" "-1")
:aria-label (tr "labels.close") :aria-label (tr "labels.close")
:on-click on-hide-comments :on-click on-hide-comments

View file

@ -86,6 +86,7 @@
height: $s-40; height: $s-40;
align-items: center; align-items: center;
padding: 0 $s-12; padding: 0 $s-12;
gap: $s-4;
} }
.header-title { .header-title {
@ -95,3 +96,13 @@
flex-grow: 1; flex-grow: 1;
text-transform: uppercase; text-transform: uppercase;
} }
.notifications-button {
&:hover {
cursor: pointer;
}
&.mark-all-as-read-button {
border-radius: $s-8;
border: $s-1 solid;
}
}