Make notification/site links slightly transparent by default
Fully opaque when it has unread items, or is focused
This commit is contained in:
1 parent
8a0d8dde36
commit
b3682b2cb3
1 file changed
+8
-1
@@ -54,6 +54,12 @@ export default class NotificationsItemComponent extends Component {
|
||||
return this.label;
|
||||
}
|
||||
|
||||
get tileOpacity() {
|
||||
return this.hasUnread
|
||||
? 'opacity-100'
|
||||
: 'opacity-70 hover:opacity-100 focus-visible:opacity-100';
|
||||
}
|
||||
|
||||
<template>
|
||||
<a
|
||||
href={{@item.href}}
|
||||
@@ -61,7 +67,8 @@ export default class NotificationsItemComponent extends Component {
|
||||
aria-label={{this.tooltip}}
|
||||
data-status={{@item.status}}
|
||||
data-error-type={{@item.errorType}}
|
||||
class="relative block size-10 shrink-0 rounded-xl text-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white"
|
||||
class="relative block size-10 shrink-0 rounded-xl text-white transition-opacity focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white
|
||||
{{this.tileOpacity}}"
|
||||
...attributes
|
||||
>
|
||||
<span
|
||||
|
||||
Reference in new issue
Block a user