support aria-expand for actions (#11869)

* support aria-expand for actions

* update text
This commit is contained in:
Alan Ren
2020-08-19 14:18:52 -07:00
committed by GitHub
parent 3c538d1c2d
commit a3ae2df0ce
5 changed files with 52 additions and 3 deletions

View File

@@ -252,6 +252,7 @@ export class CollapseCellsAction extends ToggleableAction {
shouldToggleTooltip: toggleTooltip,
isOn: false
});
this.expanded = true;
}
public get isCollapsed(): boolean {
@@ -259,6 +260,7 @@ export class CollapseCellsAction extends ToggleableAction {
}
private setCollapsed(value: boolean) {
this.toggle(value);
this.expanded = !value;
}
public async run(context: URI): Promise<boolean> {