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

@@ -199,6 +199,7 @@ class FiltersDropdownMenuActionViewItem extends DropdownMenuActionViewItem {
checked: this.filters.showErrors,
class: undefined,
enabled: true,
expanded: undefined, // {{SQL CARBON EDIT}}
id: 'showErrors',
label: Messages.MARKERS_PANEL_FILTER_LABEL_SHOW_ERRORS,
run: async () => this.filters.showErrors = !this.filters.showErrors,
@@ -209,6 +210,7 @@ class FiltersDropdownMenuActionViewItem extends DropdownMenuActionViewItem {
checked: this.filters.showWarnings,
class: undefined,
enabled: true,
expanded: undefined, // {{SQL CARBON EDIT}}
id: 'showWarnings',
label: Messages.MARKERS_PANEL_FILTER_LABEL_SHOW_WARNINGS,
run: async () => this.filters.showWarnings = !this.filters.showWarnings,
@@ -219,6 +221,7 @@ class FiltersDropdownMenuActionViewItem extends DropdownMenuActionViewItem {
checked: this.filters.showInfos,
class: undefined,
enabled: true,
expanded: undefined, // {{SQL CARBON EDIT}}
id: 'showInfos',
label: Messages.MARKERS_PANEL_FILTER_LABEL_SHOW_INFOS,
run: async () => this.filters.showInfos = !this.filters.showInfos,
@@ -231,6 +234,7 @@ class FiltersDropdownMenuActionViewItem extends DropdownMenuActionViewItem {
class: undefined,
enabled: true,
id: 'activeFile',
expanded: undefined, // {{SQL CARBON EDIT}}
label: Messages.MARKERS_PANEL_FILTER_LABEL_ACTIVE_FILE,
run: async () => this.filters.activeFile = !this.filters.activeFile,
tooltip: '',
@@ -240,6 +244,7 @@ class FiltersDropdownMenuActionViewItem extends DropdownMenuActionViewItem {
checked: this.filters.excludedFiles,
class: undefined,
enabled: true,
expanded: undefined, // {{SQL CARBON EDIT}}
id: 'useFilesExclude',
label: Messages.MARKERS_PANEL_FILTER_LABEL_EXCLUDED_FILES,
run: async () => this.filters.excludedFiles = !this.filters.excludedFiles,