1
0
mirror of https://github.com/flarum/core.git synced 2025-07-30 21:20:24 +02:00

Add aria-label attribute to navigation drawer button. (#3157)

Co-authored-by: David Wheatley <hi@davwheat.dev>
This commit is contained in:
Garrett Grimm
2021-11-08 10:40:17 -08:00
committed by GitHub
parent 2daee924c5
commit 0957cca9e2
2 changed files with 5 additions and 0 deletions

View File

@@ -93,6 +93,7 @@ export default class Navigation extends Component {
drawer.show();
},
icon: 'fas fa-bars',
'aria-label': app.translator.trans('core.lib.nav.drawer_button'),
});
}
}

View File

@@ -539,6 +539,10 @@ core:
loading_indicator:
accessible_label: => core.ref.loading
# These translations are used in the navigation header.
nav:
drawer_button: Open Navigation Drawer
# These translations are used as suffixes when abbreviating numbers.
number_suffix:
kilo_text: K