mirror of
https://github.com/flarum/core.git
synced 2025-08-03 23:17:43 +02:00
Add aria-label attribute to navigation drawer button. (#3157)
Co-authored-by: David Wheatley <hi@davwheat.dev>
This commit is contained in:
@@ -93,6 +93,7 @@ export default class Navigation extends Component {
|
|||||||
drawer.show();
|
drawer.show();
|
||||||
},
|
},
|
||||||
icon: 'fas fa-bars',
|
icon: 'fas fa-bars',
|
||||||
|
'aria-label': app.translator.trans('core.lib.nav.drawer_button'),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -539,6 +539,10 @@ core:
|
|||||||
loading_indicator:
|
loading_indicator:
|
||||||
accessible_label: => core.ref.loading
|
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.
|
# These translations are used as suffixes when abbreviating numbers.
|
||||||
number_suffix:
|
number_suffix:
|
||||||
kilo_text: K
|
kilo_text: K
|
||||||
|
Reference in New Issue
Block a user