Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

[terra-table] Column Header Cells Accounce Changes when sorting with JAWS #2117

Closed
wants to merge 7 commits into from

Conversation

kenk2
Copy link
Contributor

@kenk2 kenk2 commented Apr 2, 2024

Summary

What was changed:
Adds Aria-Sort to the terra-table

Why it was changed:
So JAWS can ead the sortable table order.

Testing

This change was tested using:

  • WDIO
  • Jest
  • Visual testing (please attach a screenshot or recording)
  • Other (please describe below)
  • No tests are needed

Reviews

In addition to engineering reviews, this PR needs:

  • UX review
  • Accessibility review
  • Functional review

Additional Details

This PR resolves:

UXPLATFORM-10327


Thank you for contributing to Terra.
@cerner/terra

@kenk2 kenk2 requested a review from a team April 2, 2024 18:22
@kenk2 kenk2 self-assigned this Apr 2, 2024
@kenk2 kenk2 changed the title Add Aria Sort to Column Header Cells. [terra-table] Add Aria Sort to Column Header Cells. Apr 2, 2024
@github-actions github-actions bot temporarily deployed to preview-pr-2117 April 2, 2024 18:22 Destroyed
@github-actions github-actions bot temporarily deployed to preview-pr-2117 April 2, 2024 18:25 Destroyed
@github-actions github-actions bot temporarily deployed to preview-pr-2117 April 2, 2024 18:32 Destroyed
@github-actions github-actions bot temporarily deployed to preview-pr-2117 April 2, 2024 18:52 Destroyed
@@ -391,9 +391,15 @@ const ColumnHeaderCell = (props) => {
className={cx('header-container')}
{...hasButtonElement && { ref: columnHeaderCellRef, role: 'button' }}
tabIndex={buttonTabIndex}
aria-sort={sortIndicator}
Copy link
Contributor

Choose a reason for hiding this comment

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

This attribute is not fully supported by most of the screen readers. Will this really resolve an issue? What is not being covered by the hidden text?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was originally requested to add aria-sort to the column header so that it would read the sort order. However upon discovery that JAWS and most screen readers do not support this I have changed the approach to using aria-live instead on the sorting text.

@mjpalazzo
Copy link
Contributor

@kenk2 Is this for the issue we discussed this morning? I thought we agreed to assign it back to UX for guidance.

@mjpalazzo
Copy link
Contributor

mjpalazzo commented Apr 2, 2024

@kenk2 Is this for the issue we discussed this morning? I thought we agreed to assign it back to UX for guidance. Or is this a different more general issue with announcing sort order for sortable columns?

@mjpalazzo mjpalazzo closed this Apr 2, 2024
@kenk2 kenk2 reopened this Apr 3, 2024
@kenk2
Copy link
Contributor Author

kenk2 commented Apr 3, 2024

@mjpalazzo That was a different issue than this one. I closed #2114 because that was the one related to removing the tab focus in that example.

@mjpalazzo
Copy link
Contributor

@mjpalazzo That was a different issue than this one. I closed #2114 because that was the one related to removing the tab focus in that example.

@kenk2 - thanks for letting me know.

@github-actions github-actions bot temporarily deployed to preview-pr-2117 April 3, 2024 15:54 Destroyed
@kenk2 kenk2 changed the title [terra-table] Add Aria Sort to Column Header Cells. [terra-table] Column Header Cells Accounce Changes when sorting Apr 3, 2024
@kenk2 kenk2 changed the title [terra-table] Column Header Cells Accounce Changes when sorting [terra-table] Column Header Cells Accounce Changes when sorting with JAWS Apr 3, 2024
@github-actions github-actions bot temporarily deployed to preview-pr-2117 April 3, 2024 16:07 Destroyed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants