Skip to content

fix(grid): Add aria-selected attribute handling for single select rows#3390

Draft
anna-lach wants to merge 7 commits into
mainfrom
fix/2896-grid-selection-missing-selected-state-for-single-select
Draft

fix(grid): Add aria-selected attribute handling for single select rows#3390
anna-lach wants to merge 7 commits into
mainfrom
fix/2896-grid-selection-missing-selected-state-for-single-select

Conversation

@anna-lach
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings May 27, 2026 11:45
@anna-lach anna-lach linked an issue May 27, 2026 that may be closed by this pull request
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 27, 2026

🦋 Changeset detected

Latest commit: 50d9650

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sl-design-system/grid Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds ARIA selection state handling to grid rows, improving accessibility for single-select rows and active-row behavior.

Changes:

  • Adds computed aria-selected values to rendered data rows.
  • Adds tests for absence/presence and updates of aria-selected in default, single select, and activate modes.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/components/grid/src/grid.ts Computes and renders aria-selected for item rows based on selection or active-row state.
packages/components/grid/src/grid.spec.ts Adds regression tests for aria-selected behavior across grid configurations.

Comment thread packages/components/grid/src/grid.ts Outdated
Copilot AI review requested due to automatic review settings May 28, 2026 05:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 25 out of 25 changed files in this pull request and generated 1 comment.

Comment thread packages/components/grid/src/grid.ts Outdated
@anna-lach anna-lach added bug Something isn't working accessibility labels May 28, 2026
Copilot AI review requested due to automatic review settings May 28, 2026 08:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

Comment thread packages/components/grid/src/grid.ts Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accessibility bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Grid - Selection] Missing selected state for single select

2 participants