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

nit: table column overlapping and aria roles #4949

Merged
merged 2 commits into from
Nov 23, 2023
Merged

nit: table column overlapping and aria roles #4949

merged 2 commits into from
Nov 23, 2023

Conversation

deboer-tim
Copy link
Collaborator

What does this PR do?

These changes are already proposed in PRs #4844 and #4841 respectively, but since those PRs are taking a while in review and these changes are common and required for other PRs I'm breaking them out here:

  • Add missing aria roles to the first two cells in the column. (Not only is this correct, but some e2e tests are finding columns by counting aria cells).
  • Add max-w-full to each cell, so that the overflow-hidden applies correctly and cells that are too narrow are cropped instead of overlapping.

Screenshot/screencast of this PR

N/A

What issues does this PR fix or reference?

Issues raised during reviews of the mentioned PRs.

How to test this PR?

See issues in the PRs. e.g. to test overflow try #4841 with a long volume name and narrow columns, with or without this change.

These changes are already proposed in PRs #4844 and #4841 respectively, but
since those PRs are taking a while in review and these changes are required
for other PRs I'm breaking them out here:
- Add missing aria roles to the first two cells in the column. (Not only is
  this correct, but lack of them breaks e2e tests).
- Add max-w-full to each cell, so that the overflow-hidden applies correctly
  and cells that are too narrow are cropped instead of overlapping.

Signed-off-by: Tim deBoer <git@tdeboer.ca>
@deboer-tim deboer-tim requested review from benoitf and a team as code owners November 22, 2023 13:42
@deboer-tim deboer-tim requested review from dgolovin and feloy and removed request for a team November 22, 2023 13:42
@benoitf
Copy link
Collaborator

benoitf commented Nov 22, 2023

unit test to grab the cell role ?

Added columnheader role to future-expander column for consistency and added
tests for aria roles.

Signed-off-by: Tim deBoer <git@tdeboer.ca>
@deboer-tim
Copy link
Collaborator Author

Added aria role to first column (future section expander) to keep things consistent, and added tests.

@deboer-tim deboer-tim merged commit eae7d62 into main Nov 23, 2023
9 checks passed
@deboer-tim deboer-tim deleted the table-bits branch November 23, 2023 02:58
@podman-desktop-bot podman-desktop-bot added this to the 1.6.0 milestone Nov 23, 2023
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.

None yet

4 participants