web/PickerItem: add a proper focus ring & fix different border radius

This commit is contained in:
wukko 2025-02-13 00:29:09 +06:00
parent 553b3f9091
commit 935947cafc
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -67,6 +67,15 @@
border-radius: calc(var(--border-radius) / 2 + 2px); border-radius: calc(var(--border-radius) / 2 + 2px);
} }
.picker-item:focus-visible::after {
content: "";
width: 100%;
height: 100%;
position: absolute;
box-shadow: 0 0 0 2px var(--blue) inset;
border-radius: inherit;
}
:global(.picker-image) { :global(.picker-image) {
display: block; display: block;
width: 100%; width: 100%;
@ -76,7 +85,7 @@
pointer-events: all; pointer-events: all;
object-fit: cover; object-fit: cover;
border-radius: calc(var(--border-radius) / 2); border-radius: inherit;
} }
.picker-image.loading { .picker-image.loading {