Fill the hole in the warning icon

pull/12185/head
Sage Abdullah 2024-07-15 16:43:37 +01:00 zatwierdzone przez Thibaud Colas
rodzic 6c44d6113c
commit 74c0c25f74
2 zmienionych plików z 10 dodań i 2 usunięć

Wyświetl plik

@ -10,10 +10,15 @@
@apply w-relative;
.icon {
@apply w-w-4 w-h-4 w-absolute -w-bottom-2 w-left-2 w-z-10 w-stroke-surface-header w-shadow-white;
@apply w-w-4 w-h-4 w-absolute -w-bottom-2 w-left-2 w-z-20 w-stroke-surface-header w-shadow-white;
}
}
.w-editing-sessions__decorator-filler {
/* HACK: fill the 'hole' inside the warning icon with a solid bg-surface-header */
@apply w-block w-w-[3px] w-h-2 w-absolute w-bottom-[-5px] w-left-[14.5px] w-bg-surface-header w-z-10;
}
.w-editing-sessions__popup {
@apply w-flex w-flex-col w-items-center w-justify-center w-gap-1;
}
@ -33,7 +38,9 @@
.w-editing-sessions__session {
@apply w-p-0 w-bg-transparent;
[aria-expanded='true'] .w-editing-sessions__decorated-avatar .icon {
[aria-expanded='true']
.w-editing-sessions__decorated-avatar
:where(.icon, .w-editing-sessions__decorator-filler) {
@apply w-hidden;
}
}

Wyświetl plik

@ -12,6 +12,7 @@
<div class="w-editing-sessions__decorated-avatar">
{{ avatar }}
{% icon name="warning" %}
<span class="w-editing-sessions__decorator-filler"></span>
</div>
{% endfragment %}