fix(a11y): FCC logo link (#45039)

* fix: fcc logo link

* fix: fcc svg label

* feat: use translated aria for logo

* clean up

Co-authored-by: ahmad abdolsaheb <ahmad.abdolsaheb@gmail.com>
This commit is contained in:
Bruce B
2022-02-10 17:02:26 -08:00
committed by GitHub
parent 898a9ef86f
commit 361e7fc2e5
3 changed files with 2 additions and 4 deletions

View File

@ -449,7 +449,7 @@
"magnifier": "magnifier"
},
"aria": {
"fcc-logo": "freeCodeCamp Logo",
"fcc-curriculum": "freeCodeCamp Curriculum",
"answer": "Answer",
"linkedin": "Link to {{username}}'s LinkedIn",
"github": "Link to {{username}}'s GitHub",

View File

@ -6,9 +6,8 @@ function FreeCodeCampLogo(): JSX.Element {
return (
<svg
aria-label={t('aria.fcc-logo')}
aria-label={t('aria.fcc-curriculum')}
height={24}
role='math'
version='1.1'
viewBox='0 0 210 24'
width={210}

View File

@ -57,7 +57,6 @@ export const UniversalNav = ({
<div className='universal-nav-middle'>
<Link id='universal-nav-logo' to='/learn'>
<NavLogo />
<span className='sr-only'>freeCodeCamp.org</span>
</Link>
</div>
<div className='universal-nav-right main-nav'>