diff --git a/libs/core/src/lib/popover/base/base-popover.class.ts b/libs/core/src/lib/popover/base/base-popover.class.ts index e4c546d884e..3516aeb2627 100644 --- a/libs/core/src/lib/popover/base/base-popover.class.ts +++ b/libs/core/src/lib/popover/base/base-popover.class.ts @@ -160,7 +160,7 @@ export class BasePopoverClass { isOpenChange: EventEmitter = new EventEmitter(); /** @hidden Aria role for the popover body. */ - _bodyRole: string | null = null; + _bodyRole: string | null = 'dialog'; /** @hidden ID for the popover body. */ _bodyId: string | null = null; diff --git a/libs/core/src/lib/popover/popover-body/popover-body.component.ts b/libs/core/src/lib/popover/popover-body/popover-body.component.ts index dabfcb42159..3cf6f6993ce 100644 --- a/libs/core/src/lib/popover/popover-body/popover-body.component.ts +++ b/libs/core/src/lib/popover/popover-body/popover-body.component.ts @@ -84,7 +84,7 @@ export class PopoverBodyComponent implements AfterViewInit { _closeOnEscapeKey = false; /** @hidden Aria role for the popover body */ - _bodyRole: Nullable = null; + _bodyRole: Nullable = 'dialog'; /** @hidden Aria role for the popover body */ _bodyId: Nullable = null; diff --git a/libs/docs/platform/multi-combobox/e2e/multi-combobox.po.ts b/libs/docs/platform/multi-combobox/e2e/multi-combobox.po.ts index 58bf50a43ad..7e00f6f0f44 100644 --- a/libs/docs/platform/multi-combobox/e2e/multi-combobox.po.ts +++ b/libs/docs/platform/multi-combobox/e2e/multi-combobox.po.ts @@ -16,7 +16,7 @@ export class MultiComboboxPo extends PlatformBaseComponentPo { listItem = this.list + ' li.fd-list__item[role="option"]'; selectedListItem = this.list + ' .fd-list__item.is-selected .fd-list__title'; - dialog = '[role="dialog"]'; + dialog = '.fd-dialog'; dialogButton = this.dialog + ' .fd-button'; dialogListItem = this.dialog + ' .fd-list__item[role="option"]'; selectedDialogItem = this.dialog + ' .fd-list__item.is-selected .fd-list__title';