Skip to content

Commit 65bb0a0

Browse files
committed
fix(ui5-table): accessibility improvements implemented
- The correct npm package is used for translations Fixes: #12630 - ariaLabelledByElements is used instead of aria-labelledby Fixes: #12657 - The sample now uses correct mode property Fixes: #11946
1 parent c38e056 commit 65bb0a0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

packages/main/cypress/specs/TableCustomAnnouncement.cy.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,15 @@ describe("Cell Custom Announcement - More details", () => {
148148
cy.realPress("ArrowRight"); // Row actions cell
149149
checkAnnouncement(Table.i18nBundle.getText(MULTIPLE_ACTIONS, 2));
150150
cy.focused().should("have.attr", "aria-colindex", "6")
151-
.should("have.attr", "role", "gridcell");
151+
.should("have.attr", "role", "gridcell")
152+
.then($rowActionsCell => {
153+
const rowActionsCell = $rowActionsCell[0];
154+
const invisibleText = document.getElementById("ui5-table-invisible-text");
155+
expect(rowActionsCell.ariaLabelledByElements[0]).to.equal(invisibleText);
156+
rowActionsCell.blur();
157+
expect(rowActionsCell.ariaLabelledByElements).to.equal(null);
158+
rowActionsCell.focus();
159+
});
152160

153161
cy.get("#row1-edit-action").invoke("remove");
154162
checkAnnouncement(ONE_ROW_ACTION, true);

0 commit comments

Comments
 (0)