mirror of
https://github.com/penpot/penpot.git
synced 2025-05-18 23:26:10 +02:00
💄 Add cosmetic changes to notifications buttons (#5902)
This commit is contained in:
parent
e408bc9113
commit
a3e74c55f1
2 changed files with 15 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue