mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(a11y): add alt text for icons in menu links (#52066)
This commit is contained in:
@@ -197,6 +197,8 @@ function NavLinks({
|
||||
to={t('links:nav.forum')}
|
||||
>
|
||||
<span>{t('buttons.forum')}</span>
|
||||
<span className='sr-only'>, {t('aria.opens-new-window')}</span>
|
||||
|
||||
<FontAwesomeIcon icon={faExternalLinkAlt} />
|
||||
</Link>
|
||||
</li>
|
||||
@@ -209,6 +211,7 @@ function NavLinks({
|
||||
to={t('links:nav.news')}
|
||||
>
|
||||
<span>{t('buttons.news')}</span>
|
||||
<span className='sr-only'>, {t('aria.opens-new-window')}</span>
|
||||
<FontAwesomeIcon icon={faExternalLinkAlt} />
|
||||
</Link>
|
||||
</li>
|
||||
@@ -221,6 +224,7 @@ function NavLinks({
|
||||
to={radioLocation}
|
||||
>
|
||||
<span>{t('buttons.radio')}</span>
|
||||
<span className='sr-only'>, {t('aria.opens-new-window')}</span>
|
||||
<FontAwesomeIcon icon={faExternalLinkAlt} />
|
||||
</Link>
|
||||
</li>
|
||||
@@ -233,6 +237,7 @@ function NavLinks({
|
||||
to={t('links:nav.contribute')}
|
||||
>
|
||||
<span>{t('buttons.contribute')}</span>
|
||||
<span className='sr-only'>, {t('aria.opens-new-window')}</span>
|
||||
<FontAwesomeIcon icon={faExternalLinkAlt} />
|
||||
</Link>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user