Skip to content

Commit

Permalink
fix(EbaySvg): Hide SVG definition from screen readers (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
HenriqueLimas authored Dec 13, 2024
1 parent 852f643 commit fdbc35a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ebay-svg/svg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const EbaySvg: FC<EbaySvgProps> = ({ icons }: EbaySvgProps) => {
// Use position absolute and height/width 0px instead of display none
// so <defs> element for spectrum icons are shown
return (
<svg style={{ position: 'absolute', height: '0px', width: '0px' }}>
<svg style={{ position: 'absolute', height: '0px', width: '0px' }} focusable={false} aria-hidden="true">
{!iconIds ? symbols : symbols
.filter(({ props, type }) => type === 'defs' || iconIds.has(props.id))}
</svg>
Expand Down

0 comments on commit fdbc35a

Please sign in to comment.