Skip to content

Commit b3cbb33

Browse files
authored
fix(web/svg.tsx): remove role=presentation from defs element. (#237)
1 parent 5861ed8 commit b3cbb33

File tree

7 files changed

+10
-28
lines changed

7 files changed

+10
-28
lines changed

Diff for: src/web/Svg.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const SVG: React.FC<IContentLoaderProps> = ({
4747
style={{ fill: `url(${baseUrl}#${idGradient})` }}
4848
/>
4949

50-
<defs role="presentation">
50+
<defs>
5151
<clipPath id={idClip}>{children}</clipPath>
5252

5353
<linearGradient id={idGradient}>

Diff for: src/web/__tests__/__snapshots__/snapshots.test.tsx.snap

+4-12
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ exports[`ContentLoader snapshots renders correctly the basic version 1`] = `
2626
x="0"
2727
y="0"
2828
/>
29-
<defs
30-
role="presentation"
31-
>
29+
<defs>
3230
<clipPath
3331
id="snapshots-diff"
3432
>
@@ -146,9 +144,7 @@ exports[`ContentLoader snapshots renders correctly with viewBox defined 1`] = `
146144
x="0"
147145
y="0"
148146
/>
149-
<defs
150-
role="presentation"
151-
>
147+
<defs>
152148
<clipPath
153149
id="snapshots-diff"
154150
>
@@ -268,9 +264,7 @@ exports[`ContentLoader snapshots renders correctly with viewBox defined and size
268264
x="0"
269265
y="0"
270266
/>
271-
<defs
272-
role="presentation"
273-
>
267+
<defs>
274268
<clipPath
275269
id="snapshots-diff"
276270
>
@@ -388,9 +382,7 @@ exports[`ContentLoader snapshots renders correctly with viewBox empty 1`] = `
388382
x="0"
389383
y="0"
390384
/>
391-
<defs
392-
role="presentation"
393-
>
385+
<defs>
394386
<clipPath
395387
id="snapshots-diff"
396388
>

Diff for: src/web/__tests__/presets/__snapshots__/BulletListStyle.test.tsx.snap

+1-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ exports[`BulletListStyle renders correctly 1`] = `
2626
x="0"
2727
y="0"
2828
/>
29-
<defs
30-
role="presentation"
31-
>
29+
<defs>
3230
<clipPath
3331
id="BulletListStyle-diff"
3432
>

Diff for: src/web/__tests__/presets/__snapshots__/CodeStyle.test.tsx.snap

+1-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ exports[`CodeStyle renders correctly 1`] = `
2626
x="0"
2727
y="0"
2828
/>
29-
<defs
30-
role="presentation"
31-
>
29+
<defs>
3230
<clipPath
3331
id="CodeStyle-diff"
3432
>

Diff for: src/web/__tests__/presets/__snapshots__/FacebookStyle.test.tsx.snap

+1-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ exports[`FacebookStyle renders correctly 1`] = `
2626
x="0"
2727
y="0"
2828
/>
29-
<defs
30-
role="presentation"
31-
>
29+
<defs>
3230
<clipPath
3331
id="FacebookStyle-diff"
3432
>

Diff for: src/web/__tests__/presets/__snapshots__/InstagramStyle.test.tsx.snap

+1-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ exports[`InstagramStyle renders correctly 1`] = `
2626
x="0"
2727
y="0"
2828
/>
29-
<defs
30-
role="presentation"
31-
>
29+
<defs>
3230
<clipPath
3331
id="InstagramStyle-diff"
3432
>

Diff for: src/web/__tests__/presets/__snapshots__/ListStyle.test.tsx.snap

+1-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ exports[`ListStyle renders correctly 1`] = `
2626
x="0"
2727
y="0"
2828
/>
29-
<defs
30-
role="presentation"
31-
>
29+
<defs>
3230
<clipPath
3331
id="ListStyle-diff"
3432
>

0 commit comments

Comments
 (0)