Fix/border avatargroup (#1956)

* adding border to avatargroup based on the parent background color

* fixed border

Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
Peer RichelsenandPeer Richelsen authored and GitHub committed 2022-02-23 15:29:40 +00:00
1 parent 9e89f954e8
commit b91dfe7595
5 files changed
+13 -7

No files matched your search

+8 -2
View File
@@ -22,8 +22,14 @@ export const AvatarGroup = function AvatarGroup(props: AvatarGroupProps) {
{props.items.slice(0, props.truncateAfter).map((item, idx) => {
if (item.image != null) {
return (
<li key={idx} className={classNames("-mr-2 inline-block border-2", props.border)}>
<Avatar imageSrc={item.image} title={item.title} alt={item.alt || ""} size={props.size} />
<li key={idx} className="-mr-2 inline-block">
<Avatar
className={props.border}
imageSrc={item.image}
title={item.title}
alt={item.alt || ""}
size={props.size}
/>
</li>
);
}