Update pagination style and kb navigation for editions table #9883
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Addresses #9853 tasks 1 and 3
Refactor
Technical
Adds a background to pagination button to make it easier for users to see which page they are currently viewing.
Prevents users from tabbing into the
a
element within the editions table header row, and adds an outline for the currently focused element within the row. Arrow keys left and right can be also used to switch between the two header rows.Pressing enter within a section of the table header row will now update the arrow indicator for ascending/descending order.
Testing
Go to a works page and scroll down to the editions table.
Verify that the current paginated button has a grey background with black text.
Tab into the editions table header row and use Enter/ArrowLeft/ArrowRight/Tab/Shift + Tab to test added keyboard navigation.
Screenshot
2024-09-17.08-21-20.mp4
Stakeholders
@cdrini