From 62683555dd5859d9202a12bd680dfe177fd33157 Mon Sep 17 00:00:00 2001 From: Konstantin Kondov Date: Wed, 20 May 2026 14:35:19 +0300 Subject: [PATCH 1/2] fix(ui5-carousel): remove redundant role="region" from section element The
element already has an implicit ARIA role of "region", making the explicit attribute unnecessary and flagged by validators. --- packages/main/src/CarouselTemplate.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/main/src/CarouselTemplate.tsx b/packages/main/src/CarouselTemplate.tsx index 93ee3428a8b1..ca93b7acfabf 100644 --- a/packages/main/src/CarouselTemplate.tsx +++ b/packages/main/src/CarouselTemplate.tsx @@ -10,7 +10,6 @@ export default function CarouselTemplate(this: Carousel) { "ui5-carousel-root": true, [`ui5-carousel-background-${this._backgroundDesign}`]: true, }} - role="region" aria-label={this.ariaLabelTxt} aria-roledescription={this._roleDescription} onFocusIn={this._onfocusin} From 5f8dd6de4693027b9e1215a2f421307f3c3fb219 Mon Sep 17 00:00:00 2001 From: Konstantin Kondov Date: Wed, 20 May 2026 15:17:50 +0300 Subject: [PATCH 2/2] fix(ui5-carousel): remove redundant role="region" from section element Fixed failing test --- packages/main/cypress/specs/Carousel.cy.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/main/cypress/specs/Carousel.cy.tsx b/packages/main/cypress/specs/Carousel.cy.tsx index 771193c1035e..2a62f0b5f648 100644 --- a/packages/main/cypress/specs/Carousel.cy.tsx +++ b/packages/main/cypress/specs/Carousel.cy.tsx @@ -244,8 +244,8 @@ describe("Carousel general interaction", () => { cy.get("#carousel5") .shadow() - .find(".ui5-carousel-root") - .should("have.attr", "role", "region"); + .find("section.ui5-carousel-root") + .should("exist"); cy.get("#carousel5") .shadow()