mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-18 21:07:49 +00:00
ref(toolbar): add accessibility labels for torture tests (#2685)
* ref(toolbar): add accessibility labels for torture tests * squash: update propTypes
This commit is contained in:
@@ -14,6 +14,12 @@ class OverflowMenuItem extends Component {
|
||||
* @static
|
||||
*/
|
||||
static propTypes = {
|
||||
/**
|
||||
* A succinct description of what the item does. Used by accessibility
|
||||
* tools and torture tests.
|
||||
*/
|
||||
accessibilityLabel: PropTypes.string,
|
||||
|
||||
/**
|
||||
* The icon class to use for displaying an icon before the link text.
|
||||
*/
|
||||
@@ -39,6 +45,7 @@ class OverflowMenuItem extends Component {
|
||||
render() {
|
||||
return (
|
||||
<li
|
||||
aria-label = { this.props.accessibilityLabel }
|
||||
className = 'overflow-menu-item'
|
||||
onClick = { this.props.onClick }>
|
||||
<span className = 'overflow-menu-item-icon'>
|
||||
|
||||
Reference in New Issue
Block a user