Skip to content

Commit

Permalink
fix(a11y): hide spacer span (freeCodeCamp#48766)
Browse files Browse the repository at this point in the history
* fix: removed html text and added aria-hidden attribute to span element

* Update client/src/assets/icons/spacer.tsx

Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>

* fix: formatting code

Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>
  • Loading branch information
2 people authored and pull[bot] committed Apr 5, 2023
1 parent 48f2fa5 commit ed0bccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/assets/icons/spacer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ function Spacer(props: SpacerPropTypes): JSX.Element {

return (
<>
<span className='sr-only'>{t('icons.spacer')}</span>
<svg
className='tick'
aria-hidden='true'
height='50'
viewBox='-10 -45 200 200'
width='50'
Expand Down

0 comments on commit ed0bccd

Please sign in to comment.