bcgov / MFIN-Data-Catalogue

The Finance Data Catalogue enables users to discover data holdings at the BC Ministry of Finance and offers information and functionality that benefits consumers of data for business purposes. The product is built using Drupal and adheres to the Government of BC's Core Administrative and Descriptive etadata Standard.
Other
6 stars 0 forks source link

When loading resulting page in Report Builder and Manage tab, target focus to the relevant page element #550

Open david-fong-bc opened 1 month ago

david-fong-bc commented 1 month ago

https://github.com/bcgov/MFIN-Data-Catalogue/labels/Idea


User story

As a user of the Report Builder and Manage tab features, when I submit a search/apply request or a search-field-reset request, I would like the newly loaded page to automatically be scrolled to the section which I am mostly likely to be next interested in.

Describe the idea

Change the element with classname view-content to have an ID attribute to target in the URL hash, and when submitting/applying a search or navigating pages of the search results table, use that ID as the hash of the URL (browsers should try to scroll to the element with that ID). Similarly, for the reset button, target an ID for the top of the element containing all the search fields.

Notes

Need to investigate / consider what impact this may have on the screen reader user experience.

Actions