Numeric value on exposed filter form is missing accessible name

Created on 9 September 2025, 4 days ago

Problem/Motivation

The value textfield on numeric exposed filters is missing an accessible name.

It appears that the problem only occurs when the operator is also exposed.

Steps to reproduce

  1. Install with standard profile.
  2. Edit the Frontpage view.
  3. Under the Filter criteria section, click "Add".
  4. In the list of fields that appears, select "ID" (in the Content category).
  5. Click "Add and configure filter criteria".
  6. Select "Expose this filter to visitors, to allow them to change it".
  7. Select "Expose operator"
  8. Click "Apply"
  9. Confirm that the new exposed filter appears in the preview.
  10. Run a test with Axe or Accessibility Insights.
  11. Click "Save"
  12. Go to /node.
  13. Run a test with Axe or Accessibility Insights.


Proposed resolution

  1. Ensure that the element has a #title property with appropriate text.
  2. Hide the label visually with '#title_display' => 'invisible'.
  3. The error appears to be in NumericFilter::valueForm

Remaining tasks

User interface changes

Accessible names are added for the affected elements.

Introduced terminology

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component

views.module

Created by

πŸ‡ΊπŸ‡ΈUnited States kentr Durango, CO

Live updates comments and jobs are added and updated live.
  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024