mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-19 18:18:27 -05:00
refactor(client): remove aria-label from icons in ShareTemplate component (#64389)
Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
This commit is contained in:
@@ -23,12 +23,7 @@ export const ShareTemplate: React.ComponentType<ShareRedirectProps> = ({
|
||||
target='_blank'
|
||||
rel='noreferrer'
|
||||
>
|
||||
<FontAwesomeIcon
|
||||
icon={faXTwitter}
|
||||
size='1x'
|
||||
aria-label='xIcon'
|
||||
aria-hidden='true'
|
||||
/>
|
||||
<FontAwesomeIcon icon={faXTwitter} size='1x' aria-hidden='true' />
|
||||
{t('buttons.share-on-x')}
|
||||
<span className='sr-only'>{t('aria.opens-new-window')}</span>
|
||||
</a>
|
||||
@@ -39,12 +34,7 @@ export const ShareTemplate: React.ComponentType<ShareRedirectProps> = ({
|
||||
target='_blank'
|
||||
rel='noreferrer'
|
||||
>
|
||||
<FontAwesomeIcon
|
||||
icon={faBluesky}
|
||||
size='1x'
|
||||
aria-label='blueSkyIcon'
|
||||
aria-hidden='true'
|
||||
/>
|
||||
<FontAwesomeIcon icon={faBluesky} size='1x' aria-hidden='true' />
|
||||
{t('buttons.share-on-bluesky')}
|
||||
<span className='sr-only'>{t('aria.opens-new-window')}</span>
|
||||
</a>
|
||||
@@ -55,12 +45,7 @@ export const ShareTemplate: React.ComponentType<ShareRedirectProps> = ({
|
||||
target='_blank'
|
||||
rel='noreferrer'
|
||||
>
|
||||
<FontAwesomeIcon
|
||||
icon={faInstagram}
|
||||
size='1x'
|
||||
aria-label='instagramIcon'
|
||||
aria-hidden='true'
|
||||
/>
|
||||
<FontAwesomeIcon icon={faInstagram} size='1x' aria-hidden='true' />
|
||||
{t('buttons.share-on-threads')}
|
||||
<span className='sr-only'>{t('aria.opens-new-window')}</span>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user