Selecting page "2" from the first page of the browser view highlights page "3" or if you try to go from page "3" to page "2" then page "1" is highlighted. Selecting "Next/Previous" will highlight "Next" or "Previous" respectively instead of the current page.

Page 3 is selected
Page 1 is selected
Next is selected

Steps to reproduce
  • Go to the project brows page
  • Select a page from the pagination widget
  • Scroll to the bottom of the page and the incorrect page will be highlighted with a green boarder

Proposed resolution

Ensure the page the user is currently viewing is the one highlighted with a green boarder

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mherman-pro created an issue. See original summary.

kwiseman’s picture

Issue tags: +Portland2024

adven-turer made their first commit to this issue’s fork.

adven-turer’s picture

Assigned: Unassigned » adven-turer

(Portland DrupalCon issue - can try out this one)

adven-turer’s picture

Status: Active » Needs review

Ended up being two separate problems.
onPageChange function was previously targeting the wrong element for focus, and the <nav> element was missing a class name, preventing some theme styles from applying.
Ready for review.

adven-turer’s picture

Assigned: adven-turer » Unassigned

kwiseman changed the visibility of the branch 3445811-current-page-not to hidden.

kwiseman changed the visibility of the branch 3445811-current-page-not to active.

chrisfromredfin made their first commit to this issue’s fork.

chrisfromredfin’s picture

Status: Needs review » Fixed

Wonderful! Thanks to all who helped; this issue was such a testament to the beauty of DrupalCon code sprints!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.