Skip to content

Commit 3c5025d

Browse files
update snapshots
1 parent 4d7a4a8 commit 3c5025d

16 files changed

+1763
-1494
lines changed

src/NavList/__snapshots__/NavList.test.tsx.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,6 +1220,7 @@ exports[`NavList.Item with NavList.SubNav does not have active styles if SubNav
12201220
aria-hidden="true"
12211221
class="c8"
12221222
fill="currentColor"
1223+
focusable="false"
12231224
height="16"
12241225
role="img"
12251226
style="display: inline-block; user-select: none; vertical-align: text-bottom; overflow: visible;"
@@ -1702,6 +1703,7 @@ exports[`NavList.Item with NavList.SubNav has active styles if SubNav contains t
17021703
aria-hidden="true"
17031704
class="c8"
17041705
fill="currentColor"
1706+
focusable="false"
17051707
height="16"
17061708
role="img"
17071709
style="display: inline-block; user-select: none; vertical-align: text-bottom; overflow: visible;"

src/__tests__/__snapshots__/ActionMenu.test.tsx.snap

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,8 @@ exports[`ActionMenu renders consistently 1`] = `
145145
<svg
146146
aria-hidden="true"
147147
className="octicon octicon-triangle-down"
148-
dangerouslySetInnerHTML={
149-
{
150-
"__html": "<path d="M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z"></path>",
151-
}
152-
}
153148
fill="currentColor"
149+
focusable="false"
154150
height={16}
155151
role="img"
156152
style={
@@ -163,7 +159,11 @@ exports[`ActionMenu renders consistently 1`] = `
163159
}
164160
viewBox="0 0 16 16"
165161
width={16}
166-
/>
162+
>
163+
<path
164+
d="M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z"
165+
/>
166+
</svg>
167167
</span>
168168
</button>
169169
</div>

src/__tests__/__snapshots__/Autocomplete.test.tsx.snap

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,12 +1266,8 @@ exports[`Autocomplete snapshots renders a menu that contains an item to add to t
12661266
<svg
12671267
aria-hidden="true"
12681268
className="octicon octicon-plus"
1269-
dangerouslySetInnerHTML={
1270-
{
1271-
"__html": "<path fill-rule="evenodd" d="M7.75 2a.75.75 0 01.75.75V7h4.25a.75.75 0 110 1.5H8.5v4.25a.75.75 0 11-1.5 0V8.5H2.75a.75.75 0 010-1.5H7V2.75A.75.75 0 017.75 2z"></path>",
1272-
}
1273-
}
12741269
fill="currentColor"
1270+
focusable="false"
12751271
height={16}
12761272
role="img"
12771273
style={
@@ -1284,7 +1280,12 @@ exports[`Autocomplete snapshots renders a menu that contains an item to add to t
12841280
}
12851281
viewBox="0 0 16 16"
12861282
width={16}
1287-
/>
1283+
>
1284+
<path
1285+
d="M7.75 2a.75.75 0 01.75.75V7h4.25a.75.75 0 110 1.5H8.5v4.25a.75.75 0 11-1.5 0V8.5H2.75a.75.75 0 010-1.5H7V2.75A.75.75 0 017.75 2z"
1286+
fillRule="evenodd"
1287+
/>
1288+
</svg>
12881289
</div>
12891290
<div
12901291
className="c7 c8"

src/__tests__/__snapshots__/Button.test.tsx.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ exports[`Button styles icon only button to make it a square 1`] = `
334334
aria-hidden="true"
335335
class="octicon octicon-search"
336336
fill="currentColor"
337+
focusable="false"
337338
height="16"
338339
role="img"
339340
style="display: inline-block; user-select: none; vertical-align: text-bottom; overflow: visible;"

src/__tests__/__snapshots__/CircleBadge.test.tsx.snap

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,8 @@ exports[`CircleBadge CircleBadge.Icon renders consistently 1`] = `
1010
<svg
1111
aria-hidden="true"
1212
className="c0"
13-
dangerouslySetInnerHTML={
14-
{
15-
"__html": "<path fill-rule="evenodd" d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"></path>",
16-
}
17-
}
1813
fill="currentColor"
14+
focusable="false"
1915
height={16}
2016
role="img"
2117
style={
@@ -28,7 +24,12 @@ exports[`CircleBadge CircleBadge.Icon renders consistently 1`] = `
2824
}
2925
viewBox="0 0 16 16"
3026
width={16}
31-
/>
27+
>
28+
<path
29+
d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"
30+
fillRule="evenodd"
31+
/>
32+
</svg>
3233
`;
3334

3435
exports[`CircleBadge renders consistently 1`] = `

src/__tests__/__snapshots__/CircleOcticon.test.tsx.snap

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,8 @@ exports[`CircleOcticon renders consistently 1`] = `
4141
<svg
4242
aria-hidden="true"
4343
className="octicon octicon-check"
44-
dangerouslySetInnerHTML={
45-
{
46-
"__html": "<path fill-rule="evenodd" d="M21.03 5.72a.75.75 0 010 1.06l-11.5 11.5a.75.75 0 01-1.072-.012l-5.5-5.75a.75.75 0 111.084-1.036l4.97 5.195L19.97 5.72a.75.75 0 011.06 0z"></path>",
47-
}
48-
}
4944
fill="currentColor"
45+
focusable="false"
5046
height={32}
5147
role="img"
5248
style={
@@ -59,7 +55,12 @@ exports[`CircleOcticon renders consistently 1`] = `
5955
}
6056
viewBox="0 0 24 24"
6157
width={32}
62-
/>
58+
>
59+
<path
60+
d="M21.03 5.72a.75.75 0 010 1.06l-11.5 11.5a.75.75 0 01-1.072-.012l-5.5-5.75a.75.75 0 111.084-1.036l4.97 5.195L19.97 5.72a.75.75 0 011.06 0z"
61+
fillRule="evenodd"
62+
/>
63+
</svg>
6364
</div>
6465
</div>
6566
`;

src/__tests__/__snapshots__/Dialog.test.tsx.snap

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,8 @@ exports[`Dialog renders consistently 1`] = `
152152
<svg
153153
aria-hidden="true"
154154
className="octicon octicon-x"
155-
dangerouslySetInnerHTML={
156-
{
157-
"__html": "<path fill-rule="evenodd" d="M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"></path>",
158-
}
159-
}
160155
fill="currentColor"
156+
focusable="false"
161157
height={16}
162158
role="img"
163159
style={
@@ -170,7 +166,12 @@ exports[`Dialog renders consistently 1`] = `
170166
}
171167
viewBox="0 0 16 16"
172168
width={16}
173-
/>
169+
>
170+
<path
171+
d="M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"
172+
fillRule="evenodd"
173+
/>
174+
</svg>
174175
</button>
175176
<div
176177
className="c2"

src/__tests__/__snapshots__/SelectMenu.test.tsx.snap

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -341,12 +341,8 @@ exports[`SelectMenu right-aligned modal has right: 0px 1`] = `
341341
<svg
342342
aria-hidden="true"
343343
className="SelectMenu-icon SelectMenu-selected-icon"
344-
dangerouslySetInnerHTML={
345-
{
346-
"__html": "<path fill-rule="evenodd" d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"></path>",
347-
}
348-
}
349344
fill="currentColor"
345+
focusable="false"
350346
height={16}
351347
role="img"
352348
style={
@@ -359,7 +355,12 @@ exports[`SelectMenu right-aligned modal has right: 0px 1`] = `
359355
}
360356
viewBox="0 0 16 16"
361357
width={16}
362-
/>
358+
>
359+
<path
360+
d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"
361+
fillRule="evenodd"
362+
/>
363+
</svg>
363364
Primer Components bugs
364365
</a>
365366
<a
@@ -373,12 +374,8 @@ exports[`SelectMenu right-aligned modal has right: 0px 1`] = `
373374
<svg
374375
aria-hidden="true"
375376
className="SelectMenu-icon SelectMenu-selected-icon"
376-
dangerouslySetInnerHTML={
377-
{
378-
"__html": "<path fill-rule="evenodd" d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"></path>",
379-
}
380-
}
381377
fill="currentColor"
378+
focusable="false"
382379
height={16}
383380
role="img"
384381
style={
@@ -391,7 +388,12 @@ exports[`SelectMenu right-aligned modal has right: 0px 1`] = `
391388
}
392389
viewBox="0 0 16 16"
393390
width={16}
394-
/>
391+
>
392+
<path
393+
d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"
394+
fillRule="evenodd"
395+
/>
396+
</svg>
395397
Primer Components roadmap
396398
</a>
397399
<div
@@ -409,12 +411,8 @@ exports[`SelectMenu right-aligned modal has right: 0px 1`] = `
409411
<svg
410412
aria-hidden="true"
411413
className="SelectMenu-icon SelectMenu-selected-icon"
412-
dangerouslySetInnerHTML={
413-
{
414-
"__html": "<path fill-rule="evenodd" d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"></path>",
415-
}
416-
}
417414
fill="currentColor"
415+
focusable="false"
418416
height={16}
419417
role="img"
420418
style={
@@ -427,7 +425,12 @@ exports[`SelectMenu right-aligned modal has right: 0px 1`] = `
427425
}
428426
viewBox="0 0 16 16"
429427
width={16}
430-
/>
428+
>
429+
<path
430+
d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"
431+
fillRule="evenodd"
432+
/>
433+
</svg>
431434
Project 3
432435
</a>
433436
<a
@@ -440,12 +443,8 @@ exports[`SelectMenu right-aligned modal has right: 0px 1`] = `
440443
<svg
441444
aria-hidden="true"
442445
className="SelectMenu-icon SelectMenu-selected-icon"
443-
dangerouslySetInnerHTML={
444-
{
445-
"__html": "<path fill-rule="evenodd" d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"></path>",
446-
}
447-
}
448446
fill="currentColor"
447+
focusable="false"
449448
height={16}
450449
role="img"
451450
style={
@@ -458,7 +457,12 @@ exports[`SelectMenu right-aligned modal has right: 0px 1`] = `
458457
}
459458
viewBox="0 0 16 16"
460459
width={16}
461-
/>
460+
>
461+
<path
462+
d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"
463+
fillRule="evenodd"
464+
/>
465+
</svg>
462466
Project 4
463467
</a>
464468
<footer

src/__tests__/__snapshots__/SelectPanel.test.tsx.snap

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,8 @@ exports[`SelectPanel renders consistently 1`] = `
9696
<svg
9797
aria-hidden="true"
9898
className="c2"
99-
dangerouslySetInnerHTML={
100-
{
101-
"__html": "<path d="M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z"></path>",
102-
}
103-
}
10499
fill="currentColor"
100+
focusable="false"
105101
height={16}
106102
role="img"
107103
style={
@@ -114,7 +110,11 @@ exports[`SelectPanel renders consistently 1`] = `
114110
}
115111
viewBox="0 0 16 16"
116112
width={16}
117-
/>
113+
>
114+
<path
115+
d="M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z"
116+
/>
117+
</svg>
118118
</button>
119119
<div
120120
id="portal-root"

0 commit comments

Comments
 (0)