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

CRIMAPP-1534 no empty cells #789

Merged
merged 3 commits into from
Jan 15, 2025
Merged

CRIMAPP-1534 no empty cells #789

merged 3 commits into from
Jan 15, 2025

Conversation

timpeat
Copy link
Member

@timpeat timpeat commented Jan 13, 2025

Description of change

Add visually hidden text to empty table cells.

Link to relevant ticket

CRIMAPP-1534

Notes for reviewer

As per accessibility recommendation, add visually hidden text in the format "No data exists for %{column_name}" to empty table cells.

Screenshots of changes (if applicable)

Before changes:

After changes:

How to manually test the feature

@@ -1,4 +1,4 @@
<%= govuk_service_navigation(navigation_id: 'example-5', current_path: request.path, classes: 'app-service-navigation') do |sn| %>
<%= govuk_service_navigation(current_path: request.path, classes: 'app-service-navigation') do |sn| %>
Copy link
Member Author

Choose a reason for hiding this comment

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

☝️ removes unrelated copy paste error spotted as part of this work.

@timpeat timpeat force-pushed the CRIMAPP-1534-no-empty-cells branch from 0e8ba13 to 6350981 Compare January 13, 2025 12:25
@timpeat timpeat marked this pull request as ready for review January 13, 2025 12:35
@timpeat timpeat requested a review from a team as a code owner January 13, 2025 12:35
@timpeat timpeat changed the title Crimapp 1534 no empty cells [CRIMAPP-1534] no empty cells Jan 13, 2025
@timpeat timpeat changed the title [CRIMAPP-1534] no empty cells CRIMAPP-1534 no empty cells Jan 13, 2025
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like case type could be blank as well. Should we be handling empty cells in that column?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good call. Thanks @EdwinKruglov

@timpeat timpeat force-pushed the CRIMAPP-1534-no-empty-cells branch from f3db0b7 to 8e67f2d Compare January 14, 2025 13:50
@timpeat timpeat force-pushed the CRIMAPP-1534-no-empty-cells branch from 8e67f2d to 04889a6 Compare January 15, 2025 14:48
@timpeat timpeat merged commit 0bf7e0a into main Jan 15, 2025
7 checks passed
@timpeat timpeat deleted the CRIMAPP-1534-no-empty-cells branch January 15, 2025 15:07
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.

2 participants