From 118a2103e8d3285db37ca3c3291e9a2683e1936b Mon Sep 17 00:00:00 2001 From: i518532 Date: Wed, 29 Jul 2026 08:47:36 +0300 Subject: [PATCH] fix(ui5-input): remove role dialog from VSM --- packages/main/cypress/specs/Input.cy.tsx | 5 +++++ packages/main/src/InputPopoverTemplate.tsx | 1 + 2 files changed, 6 insertions(+) diff --git a/packages/main/cypress/specs/Input.cy.tsx b/packages/main/cypress/specs/Input.cy.tsx index 247421e2a0d53..5c52f0fa3bb6a 100644 --- a/packages/main/cypress/specs/Input.cy.tsx +++ b/packages/main/cypress/specs/Input.cy.tsx @@ -1903,6 +1903,11 @@ describe("Input general interaction", () => { cy.get("@popover") .should("have.attr", "open"); + cy.get("@popover") + .shadow() + .find(".ui5-popup-root") + .should("not.have.attr", "role", "dialog"); + // type a cy.get("@innerInput") .realType("a"); diff --git a/packages/main/src/InputPopoverTemplate.tsx b/packages/main/src/InputPopoverTemplate.tsx index dc1a797e240c7..a10f4ad12b1ff 100644 --- a/packages/main/src/InputPopoverTemplate.tsx +++ b/packages/main/src/InputPopoverTemplate.tsx @@ -28,6 +28,7 @@ export default function InputPopoverTemplate(this: Input, hooks?: { suggestionsL preventInitialFocus={true} preventFocusRestore={true} hideArrow={true} + accessibleRole="None" class="ui5-valuestatemessage-popover" placement="Bottom" tabindex={-1}