mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -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 {
|
override updateExpanded(): void {
|
||||||
if (this.label) {
|
if (this.label) {
|
||||||
if (this.getAction().expanded !== undefined) {
|
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 {
|
export class SelectActionViewItem extends BaseActionViewItem {
|
||||||
|
|||||||
Reference in New Issue
Block a user