Skip to content

Commit

Permalink
changed default size of avatar to make it smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
meghanainaganti committed Jul 10, 2023
1 parent 086dd93 commit 33d778e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion src/components/Avatar/Avatar.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const DefaultAvatar: Story<AvatarProps> = (args: AvatarProps) => <Avatar
DefaultAvatar.args = {
placeholder: 'AA',
children: '',
size: 10,
size: 1.5,
imgURL: 'https://source.unsplash.com/collection/19271953',
borderRadiusPercent: 50,
color: colors.grayXlight,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Avatar/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const Avatar = ({
placeholder,
children,
imgURL,
size = 10,
size = 1.5,
borderRadiusPercent = 50,
color: initialColor,
isLoading = false,
Expand Down
46 changes: 23 additions & 23 deletions src/components/Avatar/__tests__/__snapshots__/Avatar.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ exports[`Avatar avatar displays correct image when their is an image 1`] = `
.c1 {
border-radius: 50%;
overflow: hidden;
width: 10em;
height: 10em;
width: 1.5em;
height: 1.5em;
background-image: url(https://tinyurl.com/49dba3d4);
background-size: cover;
}
Expand All @@ -49,7 +49,7 @@ exports[`Avatar avatar displays correct image when their is an image 1`] = `
<div
class=" c0 c1"
color="#D5D5D5"
size="10"
size="1.5"
>
<div
class=" c2 c3"
Expand Down Expand Up @@ -98,8 +98,8 @@ exports[`Avatar avatar displays correct initials when there is no image 1`] = `
display: flex;
border-radius: 50%;
padding: 1em;
width: 10em;
height: 10em;
width: 1.5em;
height: 1.5em;
background-color: #D5D5D5;
-webkit-box-pack: center;
-webkit-justify-content: center;
Expand All @@ -113,7 +113,7 @@ exports[`Avatar avatar displays correct initials when there is no image 1`] = `
.c2 {
color: #51575D;
font-size: 3.3333333333333335em;
font-size: 0.5em;
font-weight: 600;
}
Expand All @@ -125,11 +125,11 @@ exports[`Avatar avatar displays correct initials when there is no image 1`] = `
<div
class=" c0 c1"
color="#D5D5D5"
size="10"
size="1.5"
>
<span
class=" c2"
size="10"
size="1.5"
>
SA
</span>
Expand Down Expand Up @@ -180,8 +180,8 @@ exports[`Avatar avatar shape is correct 1`] = `
display: flex;
border-radius: 30%;
padding: 1em;
width: 10em;
height: 10em;
width: 1.5em;
height: 1.5em;
background-color: #D5D5D5;
-webkit-box-pack: center;
-webkit-justify-content: center;
Expand All @@ -195,7 +195,7 @@ exports[`Avatar avatar shape is correct 1`] = `
.c2 {
color: #51575D;
font-size: 3.3333333333333335em;
font-size: 0.5em;
font-weight: 600;
}
Expand All @@ -207,11 +207,11 @@ exports[`Avatar avatar shape is correct 1`] = `
<div
class=" c0 c1"
color="#D5D5D5"
size="10"
size="1.5"
>
<span
class=" c2"
size="10"
size="1.5"
/>
<div
class=" c3 c4"
Expand Down Expand Up @@ -340,8 +340,8 @@ exports[`Avatar matches snapshot 1`] = `
display: flex;
border-radius: 50%;
padding: 1em;
width: 10em;
height: 10em;
width: 1.5em;
height: 1.5em;
background-color: #D5D5D5;
-webkit-box-pack: center;
-webkit-justify-content: center;
Expand All @@ -355,7 +355,7 @@ exports[`Avatar matches snapshot 1`] = `
.c2 {
color: #51575D;
font-size: 3.3333333333333335em;
font-size: 0.5em;
font-weight: 600;
}
Expand All @@ -367,11 +367,11 @@ exports[`Avatar matches snapshot 1`] = `
<div
class=" c0 c1"
color="#D5D5D5"
size="10"
size="1.5"
>
<span
class=" c2"
size="10"
size="1.5"
/>
<div
class=" c3 c4"
Expand Down Expand Up @@ -430,8 +430,8 @@ exports[`Avatar matches snapshot loading state 1`] = `
display: flex;
border-radius: 50%;
padding: 1em;
width: 10em;
height: 10em;
width: 1.5em;
height: 1.5em;
background-color: #D5D5D5;
-webkit-box-pack: center;
-webkit-justify-content: center;
Expand All @@ -445,7 +445,7 @@ exports[`Avatar matches snapshot loading state 1`] = `
.c2 {
color: #51575D;
font-size: 3.3333333333333335em;
font-size: 0.5em;
font-weight: 600;
}
Expand All @@ -457,11 +457,11 @@ exports[`Avatar matches snapshot loading state 1`] = `
<div
class=" c0 c1"
color="#D5D5D5"
size="10"
size="1.5"
>
<span
class=" c2"
size="10"
size="1.5"
/>
<div
class=" c3 c4 c5"
Expand Down

0 comments on commit 33d778e

Please sign in to comment.