Skip to content

Commit e7d9448

Browse files
committed
Avoid setting state-related ARIA attributes on separators
1 parent dcce2aa commit e7d9448

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
@@ -402,6 +402,10 @@ export class ActionViewItem extends BaseActionViewItem {
402402
}
403403

404404
protected override updateEnabled(): void {
405+
if (this.action.id === Separator.ID) {
406+
return;
407+
}
408+
405409
if (this.action.enabled) {
406410
if (this.label) {
407411
this.label.removeAttribute('aria-disabled');
@@ -427,6 +431,10 @@ export class ActionViewItem extends BaseActionViewItem {
427431
}
428432

429433
protected override updateChecked(): void {
434+
if (this.action.id === Separator.ID) {
435+
return;
436+
}
437+
430438
if (this.label) {
431439
if (this.action.checked !== undefined) {
432440
this.label.classList.toggle('checked', this.action.checked);

0 commit comments

Comments
 (0)