Skip to content

Commit 2b53bc7

Browse files
committed
actionViewItem - make sure to also set the aira-label on the label element
fixes microsoft#155880
1 parent 1cf2fd1 commit 2b53bc7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/vs/base/browser/ui/actionbar/actionViewItems.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,14 @@ export class ActionViewItem extends BaseActionViewItem {
392392
}
393393
}
394394

395+
override updateTooltip(): void {
396+
super.updateTooltip();
397+
if (this.label) {
398+
const title = this.getTooltip() ?? '';
399+
this.label.setAttribute('aria-label', title);
400+
}
401+
}
402+
395403
override updateChecked(): void {
396404
if (this.label) {
397405
if (this.getAction().checked) {

0 commit comments

Comments
 (0)