Skip to content

♿️(frontend) replace ARIA grid pattern with list in docs grid#2117

Closed
Ovgodd wants to merge 0 commit intomainfrom
fix/docs-grid-aria-list-pattern
Closed

♿️(frontend) replace ARIA grid pattern with list in docs grid#2117
Ovgodd wants to merge 0 commit intomainfrom
fix/docs-grid-aria-list-pattern

Conversation

@Ovgodd
Copy link
Collaborator

@Ovgodd Ovgodd commented Mar 24, 2026

Purpose

The document grid used role="grid" with role="row", role="gridcell", role="rowgroup", and role="columnheader". This ARIA grid pattern requires full keyboard navigation with arrow keys which it's not implemented and demand to much complexity, . With role="grid", some screen readers switch to a mode where arrow keys are handled by the page; since the page did not implement grid navigation, that interaction did not work as expected.

Proposal

  • Replace role="grid" / role="row" / role="gridcell" / role="columnheader" / role="rowgroup" with role="list" / role="listitem", matching the actual semantics (a list of documents, not a data grid)
  • Mark visual column headers (Name, Updated at) as aria-hidden="true" since they are no longer part of the list semantics
  • Add translatable screenReaderInstructions and announcements on DndContext (accessibility prop) so SR copy can be localized via i18n

@Ovgodd Ovgodd requested a review from AntoLC March 24, 2026 08:33
@Ovgodd Ovgodd self-assigned this Mar 24, 2026
@Ovgodd Ovgodd linked an issue Mar 24, 2026 that may be closed by this pull request
@Ovgodd Ovgodd moved this from Backlog to In review in LaSuite Docs A11y Mar 24, 2026
@Ovgodd Ovgodd moved this from In review to In progress in LaSuite Docs A11y Mar 24, 2026
@Ovgodd Ovgodd force-pushed the fix/docs-grid-aria-list-pattern branch from dd71f4b to 95b700e Compare March 24, 2026 08:34
@github-actions
Copy link

github-actions bot commented Mar 24, 2026

Size Change: +331 B (+0.01%)

Total Size: 4.23 MB

Filename Size Change
apps/impress/out/_next/static/614391f1/_buildManifest.js 0 B -905 B (removed) 🏆
apps/impress/out/_next/static/d259256f/_buildManifest.js 905 B +905 B (new file) 🆕

compressed-size-action

Comment on lines -36 to -41
const handleKeyDown = (e: KeyboardEvent) => {
if (e.key === 'Enter' || e.key === ' ') {
e.preventDefault();
(e.target as HTMLAnchorElement).click();
}
};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have the feeling that we can navigate to a document with the keyboard anymore.

@Ovgodd Ovgodd force-pushed the fix/docs-grid-aria-list-pattern branch from 689a6a4 to 0092f5d Compare March 24, 2026 09:38
@Ovgodd Ovgodd linked an issue Mar 24, 2026 that may be closed by this pull request
@Ovgodd Ovgodd marked this pull request as ready for review March 24, 2026 09:45
@Ovgodd Ovgodd force-pushed the fix/docs-grid-aria-list-pattern branch from 0092f5d to 6eb0e90 Compare March 24, 2026 09:46
@Ovgodd Ovgodd moved this from In progress to In review in LaSuite Docs A11y Mar 24, 2026
@Ovgodd Ovgodd requested a review from AntoLC March 24, 2026 09:46
@Ovgodd Ovgodd linked an issue Mar 24, 2026 that may be closed by this pull request
Copy link
Collaborator

@AntoLC AntoLC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should add a accessibility test on the doc grid, because this comment (#2117 (comment)) highlight that we can have strong regressions passing our tests.

@Ovgodd
Copy link
Collaborator Author

Ovgodd commented Mar 24, 2026

I think we should add a accessibility test on the doc grid, because this comment (#2117 (comment)) highlight that we can have strong regressions passing our tests.

this is a very good idea

@Ovgodd Ovgodd requested a review from AntoLC March 24, 2026 10:29
Copy link
Collaborator

@AntoLC AntoLC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ovgodd Ovgodd closed this Mar 25, 2026
@Ovgodd Ovgodd force-pushed the fix/docs-grid-aria-list-pattern branch from f07c812 to 525d8c8 Compare March 25, 2026 13:22
@github-project-automation github-project-automation bot moved this from In review to Done in LaSuite Docs A11y Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

2 participants