Problem/Motivation

This was discovered in #3023242: Pagination/Pager style update. In this issue, the global pager styling is being restyled, including the arrows for First/Previous/Next/Last.

However, many default views configurations add their own arrows, which will appear alongside any theme-provided arrows

Views config

Claro and views arrows

This is being worked around in Claro by filtering the arrow characters in Twig, but this isn't particularly sustainable. It is preferable to find a solution that allows themes to more easily override pager arrows.

Proposed resolution

Not sure yet.

Remaining tasks

Determine best approach

User interface changes

TBD

API changes

TBD

Data model changes

TBD

Release notes snippet

TBD

Comments

bnjmnm created an issue. See original summary.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

martijn.cuppens’s picture

Imo, the arrows are design elements and should be removed from the translation strings globally.

pcate’s picture

Issue tags: +Accessibility

I agree, the pager arrows are things I always have the override in custom themes. Having the arrows as text characters by default alongside legitimate text always makes this harder than it needs to be.

The current way may also have a11y issues, since I believe the arrow text characters are read by screen readers.

While I'm sure it would depend how the fix for this issue is implemented, changing the defaults would affect all current themes that don't override the pager. Would this be considered a BC because of that? If so, getting this resolved for D9 would be ideal.

martijn.cuppens’s picture

I believe the arrow text characters are read by screen readers.

I've tested this, this is not the case in Chromium.

Would this be considered a BC because of that?

This is definitely a BC, custom translations will not be applied anymore.

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

johnv’s picture

Title: Views pager arrows should be easier to override in themes. » Pager arrows should be easier to override in themes
Category: Task » Feature request

This better is Feature request, or even a Bug report.

mgifford’s picture

Category: Feature request » Bug report

Accessibility issues are bugs.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.