-
Notifications
You must be signed in to change notification settings - Fork 8
fix(grid): Grid selection - missing selected state for single select #3390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
anna-lach
wants to merge
22
commits into
main
Choose a base branch
from
fix/2896-grid-selection-missing-selected-state-for-single-select
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
0545f1f
fix(grid): Add aria-selected attribute handling for single select rows
anna-lach 73f7e26
Changes after Copilot review
anna-lach c6b7e60
Merge remote-tracking branch 'origin/main' into fix/2896-grid-selecti…
anna-lach b8dd60b
remove unnecessary formatting changes
anna-lach dc980f4
changeset
anna-lach d8c9f2f
Changes after Copilot review
anna-lach 50d9650
Formatting changes
anna-lach 7eef9fe
Merge remote-tracking branch 'origin/main' into fix/2896-grid-selecti…
anna-lach 02f10eb
fix(grid): announce row selection state (with announcer) for accessib…
anna-lach c5ac74b
fix(grid): enhance row selection announcements with forced updates fo…
anna-lach b9bf026
update row activation announcements for improved accessibility, trans…
anna-lach 2c23d4f
fix(grid): add accessibility attributes to row activation buttons (st…
anna-lach db6adc6
Merge remote-tracking branch 'origin/main' into fix/2896-grid-selecti…
anna-lach 52d54ba
Merge remote-tracking branch 'origin/main' into fix/2896-grid-selecti…
anna-lach 4e8962f
Changes after Copilot review
anna-lach bb65092
Changes after Copilot review
anna-lach 3ea96c3
Changeset
anna-lach 55f182b
Changeset update
anna-lach 193220e
remove unnecessay change
anna-lach 3cc6f8f
update urgency level in grid announcements from 'assertive' to 'polite'
anna-lach e1ac05f
Changes after Copilot review
anna-lach e099015
update grid row announcements to reflect correct row numbers
anna-lach File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@sl-design-system/announcer': minor | ||
| --- | ||
|
|
||
| Added a `force` option to the `announce()` function to allow repeated announcements of the same message (e.g. when re-focusing an active row in the grid). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| --- | ||
| '@sl-design-system/grid': patch | ||
| --- | ||
|
|
||
| Accessibility improvements for row activation and selection: | ||
|
|
||
| - Added `aria-current` to the active/selected row in activate and single-select modes. | ||
| - The grid now announces row activation and deactivation to screen readers. | ||
| - When you focus an already active row with the keyboard, the grid reannounces it (using `force`). | ||
|
|
||
| **Note:** If you use a button to trigger row activation, you should add `aria-pressed` and `aria-description` to it yourself. The grid does not set these for you. See the `'Activate'` story for an example of how to do this. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.