Skip to content

Commit

Permalink
fix(Avatar): fix outline not visible (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
arturbien authored Aug 26, 2024
1 parent ba5696c commit 54114e2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/frosted-ui/src/components/avatar.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
width: var(--avatar-size);
height: var(--avatar-size);
flex-shrink: 0;
outline-offset: -1px;

outline: 1px solid var(--accent-a5);
outline-offset: -1px;

background-color: var(--accent-a3);
border-radius: max(25%, var(--radius-full));

Expand All @@ -24,7 +25,7 @@
}
}
.fui-AvatarRoot[data-status='loaded'] {
outline: 1px solid var(--gray-a5);
outline: none;
background: none;
}

Expand All @@ -35,6 +36,11 @@
border-radius: inherit;
/* Fix safari issue where animated avatars were blurred */
transform: translateZ(0px);

&:where(.fui-AvatarRoot[data-status='loaded'] &) {
outline: 1px solid var(--gray-a5);
outline-offset: -1px;
}
}

.fui-AvatarFallback {
Expand Down

0 comments on commit 54114e2

Please sign in to comment.