Skip to content

Commit

Permalink
fix(web/svg.tsx): remove role=presentation from defs element. (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmhutch7 authored Apr 6, 2021
1 parent 5861ed8 commit b3cbb33
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 28 deletions.
2 changes: 1 addition & 1 deletion src/web/Svg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const SVG: React.FC<IContentLoaderProps> = ({
style={{ fill: `url(${baseUrl}#${idGradient})` }}
/>

<defs role="presentation">
<defs>
<clipPath id={idClip}>{children}</clipPath>

<linearGradient id={idGradient}>
Expand Down
16 changes: 4 additions & 12 deletions src/web/__tests__/__snapshots__/snapshots.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ exports[`ContentLoader snapshots renders correctly the basic version 1`] = `
x="0"
y="0"
/>
<defs
role="presentation"
>
<defs>
<clipPath
id="snapshots-diff"
>
Expand Down Expand Up @@ -146,9 +144,7 @@ exports[`ContentLoader snapshots renders correctly with viewBox defined 1`] = `
x="0"
y="0"
/>
<defs
role="presentation"
>
<defs>
<clipPath
id="snapshots-diff"
>
Expand Down Expand Up @@ -268,9 +264,7 @@ exports[`ContentLoader snapshots renders correctly with viewBox defined and size
x="0"
y="0"
/>
<defs
role="presentation"
>
<defs>
<clipPath
id="snapshots-diff"
>
Expand Down Expand Up @@ -388,9 +382,7 @@ exports[`ContentLoader snapshots renders correctly with viewBox empty 1`] = `
x="0"
y="0"
/>
<defs
role="presentation"
>
<defs>
<clipPath
id="snapshots-diff"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ exports[`BulletListStyle renders correctly 1`] = `
x="0"
y="0"
/>
<defs
role="presentation"
>
<defs>
<clipPath
id="BulletListStyle-diff"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ exports[`CodeStyle renders correctly 1`] = `
x="0"
y="0"
/>
<defs
role="presentation"
>
<defs>
<clipPath
id="CodeStyle-diff"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ exports[`FacebookStyle renders correctly 1`] = `
x="0"
y="0"
/>
<defs
role="presentation"
>
<defs>
<clipPath
id="FacebookStyle-diff"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ exports[`InstagramStyle renders correctly 1`] = `
x="0"
y="0"
/>
<defs
role="presentation"
>
<defs>
<clipPath
id="InstagramStyle-diff"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ exports[`ListStyle renders correctly 1`] = `
x="0"
y="0"
/>
<defs
role="presentation"
>
<defs>
<clipPath
id="ListStyle-diff"
>
Expand Down

0 comments on commit b3cbb33

Please sign in to comment.