Skip to content

Commit

Permalink
MenuItem: no extra space in aria-label when no accelKey is set
Browse files Browse the repository at this point in the history
  • Loading branch information
xmedeko authored and wkeese committed Aug 25, 2022
1 parent 448e474 commit 8ab4cdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MenuItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ define([
}else{
text = val;
}
this.domNode.setAttribute("aria-label", text + " " + this.accelKey);
this.domNode.setAttribute("aria-label", text + (this.accelKey ? " " + this.accelKey : ""));
this.containerNode.innerHTML = val;
this._set('shortcutKey', shortcutKey);
},
Expand Down

0 comments on commit 8ab4cdc

Please sign in to comment.