diff --git a/packages/main/cypress/specs/List.cy.tsx b/packages/main/cypress/specs/List.cy.tsx index 0e3acd85315d..38357ef04745 100644 --- a/packages/main/cypress/specs/List.cy.tsx +++ b/packages/main/cypress/specs/List.cy.tsx @@ -360,12 +360,13 @@ describe("List - Accessibility", () => { ); - // assert + // assert - "Is Active" should NOT be announced for type="Active" + // The type property indicates behavior (clickable), not state (selected) cy.get("#active").invoke("prop", "_id").then(_id => { cy.get("#active") .shadow() .find(`#${_id}-invisibleText`) - .should("have.text", "Is Active"); + .should("not.have.text", "Is Active"); }); cy.get("#inactive").invoke("prop", "_id").then(_id => { diff --git a/packages/main/src/ListItem.ts b/packages/main/src/ListItem.ts index f2d64f0227e1..ce28cecb592a 100644 --- a/packages/main/src/ListItem.ts +++ b/packages/main/src/ListItem.ts @@ -26,7 +26,6 @@ import { DELETE, ARIA_LABEL_LIST_ITEM_CHECKBOX, ARIA_LABEL_LIST_ITEM_RADIO_BUTTON, - LIST_ITEM_ACTIVE, LIST_ITEM_SELECTED, LIST_ITEM_NOT_SELECTED, } from "./generated/i18n/i18n-defaults.js"; @@ -475,7 +474,6 @@ abstract class ListItem extends ListItemBase { const texts = [ this._accInfo.listItemAriaLabel, this.accessibleName, - this.typeActive ? ListItem.i18nBundle.getText(LIST_ITEM_ACTIVE) : undefined, ].filter(Boolean); return texts.join(" "); diff --git a/packages/main/src/i18n/messagebundle.properties b/packages/main/src/i18n/messagebundle.properties index 08a0116ed577..e0ac0f9ea5d4 100644 --- a/packages/main/src/i18n/messagebundle.properties +++ b/packages/main/src/i18n/messagebundle.properties @@ -360,9 +360,6 @@ LINK_EMPHASIZED=Emphasized #XACT: ARIA announcement for the interactive nature of the list LIST_ROLE_DESCRIPTION=List with interactive items. To move to the content press F2. -#XACT: ARIA announcement for the active clickable list items -LIST_ITEM_ACTIVE=Is Active - #XACT: ARIA announcement for the position of the list items in an entire list LIST_ITEM_POSITION=List item {0} of {1}