mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 04:33:47 +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
d145e8cfc9
commit
2d386c8e21
|
@ -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…
Reference in New Issue
Block a user