-
Notifications
You must be signed in to change notification settings - Fork 72
[terra-table] Allow consumers to hide table column headers #1843
Conversation
…r default table. Remove obsolete packages. Fix wdio test.
packages/terra-framework-docs/src/terra-dev-site/doc/table/Examples/TableWithoutHeaders.jsx
Outdated
Show resolved
Hide resolved
@cm9361 Functionally it looks good, confirmed no headers are read in JAWS as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This wasn't clear in the jira but for the Stella Timeline case where the headers need to be visually hidden, they still need to exist to give that context to screen readers. A screen reader won't know to associate the external timeline as the column headers.
It gets the header info now! Thanks Charles. One last thing is the header cells shouldn't have buttons since they can't be accessed by anyone without a screen reader. |
Thank you for the feedback, @eawww. I need the logic from upcoming PRs to remove the button. I would not want to add that to this PR to prevent merge conflicts. What I can do is make the cell be 'not selectable'. This should give the desired behavior once the JIRAs in-flight are merged. Would that be acceptable? |
@cm9361 could you point me to the jira or PR removal of the button is slated on? |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥶 Cool beans! 🫘
Approving with the understanding that the removal of the button is being accomplished elsewhere.
Summary
What was changed:
The Terra Table component was updated to allow consumers to control the visibility of column headers in the table.
Why it was changed:
The change was made to maintain passivity with existing implementations that requires the column headers to be hidden such as the Stella Timeline.
Testing
This change was tested using:
Reviews
In addition to engineering reviews, this PR needs:
Additional Details
N/A
This PR resolves:
UXPLATFORM-9638
Thank you for contributing to Terra.
@cerner/terra