Facility Locator pagination Prev/Next links do not scroll to top #14895
Labels
a11y-defect-2
Serious accessibility issue that should be fixed in the next 1-2 sprints
accessibility
Issues related to accessibility
Defect
Something isn't working (issue type)
Facilities
Facilities products (VAMC, Vet Center, etc)
Facility Locator
product owned by Facilities team
sitewide
VA.gov frontend
CMS team practice area
Description
When using the Prev/Next links on the pagination on Facility Locator, the screen should load with the top of the results in view so the veteran can find their place at the top of the list on the next or previous page. Focus should also be at the "Showing X - XX of XX results" so folks using assistive technology can easily orient themselves to the new list of results.
Currently, the behavior scrolls to the bottom of the page and the pagination numbers are at the top of the view.
See this Slack comment for video example.
The pagination & focus behavior should match Find a Form paging.
User story
AS A Veteran
I WANT the page to scroll to the top when I use Prev/Next links in paginated lists
SO THAT I can easily find my place in the list on the next page
Slack thread for context on related issue in VAMC Events: https://dsva.slack.com/archives/C52CL1PKQ/p1691683090666189
Acceptance criteria
The text was updated successfully, but these errors were encountered: