Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 884bebe

Browse files
committed
Update the SVG of default user avatar so it does not use ids and masks
to avoid the issue of the default avatar being not displayed because it shares the same id with other svg.
1 parent 9451a43 commit 884bebe

File tree

2 files changed

+9
-44
lines changed

2 files changed

+9
-44
lines changed

Diff for: __tests__/shared/components/__snapshots__/Avatar.jsx.snap

+7-35
Original file line numberDiff line numberDiff line change
@@ -7,45 +7,17 @@ exports[`Snapshots 1`] = `
77
viewBox="0 0 141 141"
88
width="141"
99
xmlns="http://www.w3.org/2000/svg"
10-
xmlnsXlink="http://www.w3.org/1999/xlink"
1110
>
1211
<title>
1312
ico-user-default
1413
</title>
15-
<defs>
16-
<rect
17-
height="140"
18-
id="a"
19-
rx="306"
20-
width="140"
21-
x=".8"
22-
y=".5"
23-
/>
24-
</defs>
25-
<g
26-
fill="none"
14+
<path
15+
d="M71 35c-17.304 0-31.334 14.071-31.334 31.428v7.857c0 11.307 6.017 21.144 14.955 26.684-11.399 4.27-22.608 13.347-27.728 24.111C38.886 134.728 54.14 140.5 70.8 140.5c16.792 0 32.16-5.862 44.197-15.648-5.17-10.664-16.3-19.643-27.611-23.883 8.93-5.54 14.947-15.377 14.947-26.684v-7.857C102.334 49.07 88.304 35 71 35z"
16+
fill="#A3A3AE"
2717
fillRule="evenodd"
28-
>
29-
<mask
30-
fill="#fff"
31-
id="b"
32-
>
33-
<use
34-
xlinkHref="#a"
35-
/>
36-
</mask>
37-
<use
38-
fill="#F0F0F0"
39-
xlinkHref="#a"
40-
/>
41-
<path
42-
d="M118 137.143c0 4.345-3.501 7.857-7.833 7.857H31.833C27.51 145 24 141.488 24 137.143c0-15.714 15.142-30.376 30.62-36.174-8.937-5.54-14.953-15.377-14.953-26.683v-7.857C39.667 49.072 53.697 35 71 35c17.304 0 31.333 14.072 31.333 31.429v7.857c0 11.306-6.016 21.143-14.946 26.683 15.471 5.798 30.613 20.46 30.613 36.174z"
43-
fill="#A3A3AE"
44-
mask="url(#b)"
45-
opacity=".2"
46-
stroke="#A3A3AE"
47-
strokeWidth="3"
48-
/>
49-
</g>
18+
opacity=".2"
19+
stroke="#A3A3AE"
20+
strokeWidth="3"
21+
/>
5022
</svg>
5123
`;

Diff for: src/assets/images/default-user-avatar.svg

+2-9
Loading

0 commit comments

Comments
 (0)