Checkbox input can't have aria-required attribute

Created on 11 May 2021, over 3 years ago
Updated 21 January 2023, almost 2 years ago

Problem/Motivation

ARIA 1.1 specifies that the aria-required attribute isn't allowed on an element with role="checkbox"--including an input with a checkbox type. aria-required is allowed on checkboxes role. This was confirmed by Wilco Fiers that aria-required wasn't intended to be allowed on the checkbox role.

Steps to reproduce

1) Add a boolean field to the Article content type.
2) Set the field as required.
3) Inspect the checkbox field in the form page to add a new article and see that the aria-required attribute is set.

πŸ› Bug report
Status

Closed: duplicate

Version

10.1 ✨

Component
RenderΒ  β†’

Last updated about 8 hours ago

Created by

πŸ‡§πŸ‡·Brazil paulocs Belo Horizonte

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