mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-03-06 20:30:52 +01:00
Improve accesibility of navbar
- Description of logout button is read once - SCM-Manager logo is better decribed for assistive technologies - The state of the mobile menu is better accessible
This commit is contained in:
6
gradle/changelog/improve-accesibility-navbar.yaml
Normal file
6
gradle/changelog/improve-accesibility-navbar.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
- type: fixed
|
||||
description: Enhanced alt-text describing logo of SCM-Manager in nav bar
|
||||
- type: fixed
|
||||
description: Trigger and menu for mobile mode use correct aria attributes
|
||||
- type: fixed
|
||||
description: Logout-button exposes one description to assistive technologies
|
||||
@@ -105,7 +105,7 @@
|
||||
"alt": "Lade ..."
|
||||
},
|
||||
"logo": {
|
||||
"alt": "SCM-Manager"
|
||||
"alt": "Logo des SCM-Manager: abstrahierter, geometrischer Schmetterling"
|
||||
},
|
||||
"primary-navigation": {
|
||||
"repositories": "Repositories",
|
||||
|
||||
@@ -106,7 +106,7 @@
|
||||
"alt": "Loading ..."
|
||||
},
|
||||
"logo": {
|
||||
"alt": "SCM-Manager"
|
||||
"alt": "Logo of SCM-Manager: an abstract, geometrical butterfly"
|
||||
},
|
||||
"primary-navigation": {
|
||||
"repositories": "Repositories",
|
||||
|
||||
@@ -28,7 +28,7 @@ export const headerButtonContentClassName =
|
||||
|
||||
const HeaderButtonContent: FC<Props> = ({ burgerMode, icon, label }) => (
|
||||
<>
|
||||
<Icon title={label} name={icon} color="inherit" className={burgerMode ? "is-size-5" : "is-size-4"} />
|
||||
<Icon name={icon} color="inherit" className={burgerMode ? "is-size-5" : "is-size-4"} />
|
||||
<span>{" " + label}</span>
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -121,7 +121,8 @@ const NavigationBar: FC<Props> = ({ links }) => {
|
||||
</LogoItem>
|
||||
<button
|
||||
className={classNames("navbar-burger", { "is-active": burgerActive })}
|
||||
aria-expanded="true"
|
||||
aria-haspopup="menu"
|
||||
aria-expanded={burgerActive}
|
||||
onClick={() => setBurgerActive((active) => !active)}
|
||||
aria-label={t("primary-navigation.navbarBurger")}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user