mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 01:25:37 -05:00
set aria label for action item (#23085)
This commit is contained in:
@@ -424,7 +424,7 @@ export class ActionViewItem extends BaseActionViewItem {
|
||||
}
|
||||
}
|
||||
|
||||
// {{SQL CARBON EDIT}}
|
||||
// {{SQL CARBON EDIT}} - BEGIN
|
||||
override updateExpanded(): void {
|
||||
if (this.label) {
|
||||
if (this.getAction().expanded !== undefined) {
|
||||
@@ -434,6 +434,16 @@ export class ActionViewItem extends BaseActionViewItem {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override updateTooltip(): void {
|
||||
super.updateTooltip();
|
||||
const tooltip = this.getTooltip();
|
||||
if (tooltip) {
|
||||
this.label?.setAttribute('aria-label', tooltip);
|
||||
}
|
||||
}
|
||||
|
||||
// {{SQL CARBON EDIT}} - END
|
||||
}
|
||||
|
||||
export class SelectActionViewItem extends BaseActionViewItem {
|
||||
|
||||
Reference in New Issue
Block a user