mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 11:07:58 +08:00
Add aria-label attribute to navigation drawer button. (#3157)
Co-authored-by: David Wheatley <hi@davwheat.dev>
This commit is contained in:
parent
2daee924c5
commit
0957cca9e2
@ -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'),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user