Skip to content
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

508 changes for sds-table expand #1545

Merged
merged 2 commits into from
Oct 10, 2024
Merged

508 changes for sds-table expand #1545

merged 2 commits into from
Oct 10, 2024

Conversation

shayan-roshan
Copy link
Collaborator

@shayan-roshan shayan-roshan commented Oct 2, 2024

fixed 508 issues.

Description

for sds table expand fixed keyboard navigation for expand buttons

Motivation and Context

resolves #1148

Type of Change (Select One and Apply Github Label)

  • Bug fix (non-breaking change which fixes an issue) -> Apply bugfix label
  • New feature (non-breaking change which adds functionality) -> Apply enhancement label
  • Breaking change (fix or feature that would cause existing functionality to change) -> Apply breaking label

Screenshots (if appropriate):

Which browsers have you tested?

  • Internet Explorer 11
  • Edge
  • Chrome
  • Firefox
  • Safari

Checklist:

Copy link

github-actions bot commented Oct 2, 2024

PR Preview Action v1.4.8
Preview removed because the pull request was closed.
2024-10-10 17:38 UTC

@@ -65,6 +65,7 @@
*matCellDef="let element"
[attr.colspan]="rowConfig.displayedColumns.length"
class="sds-table__cell--detail"
role="rowgroup"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are you sure rowgroup is the right role? I seem to remember this TD is just a maxColumn cell. Looking at MDN it looks like the expectation is that a rowgroup contains other rows of cells, while I'm pretty sure this TD just contains some content, not any rows of other cells.

If you need to put a role on this element, maybe cell makes more sense?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

updated to cell

@@ -84,6 +85,11 @@
*matCellDef="let element"
class="cursor-pointer maxw-3 padding-top-2 padding-right-0 padding-left-1"
(click)="onExpansionClicked(element)"
[attr.aria-expanded]="element == expandedElement ? 'true' : 'false'"
[attr.aria-label]="element == expandedElement ? 'Collapse details' : 'Expand details'"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it might make sense to have this come from the configuration. I'm sure there is a use-case out there where something other than details are being displayed, and being able to be more specific about what details are being expanded could be useful.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

updated the demo to be able to define the labels

@cwolf10
Copy link
Collaborator

cwolf10 commented Oct 9, 2024

Also you probably should add something like resolves #1148 to the body of your PR so github will auto-close the source issue once this PR is merged

@shayan-roshan
Copy link
Collaborator Author

I edited the description to link the story no. with this PR

Copy link
Collaborator

@cwolf10 cwolf10 left a comment

Choose a reason for hiding this comment

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

LGTM

@shayan-roshan shayan-roshan merged commit 0fa5229 into master Oct 10, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

508 issues with sds-table
2 participants