Make WordPress Core

Opened 39 hours ago

#66271 new defect (bug)

Make sure aria-disabled buttons use a consistent focus style

Reported by: afercia Owned by:
Priority: normal Milestone: Awaiting Review
Component: Administration Version:
Severity: normal Keywords:
Cc: Focuses: accessibility

Description

Splitting this out from #66038.
See comment at ​https://github.com/WordPress/wordpress-develop/pull/13390/#issuecomment-6061122370

Now that Core is going to use more and more the pattern already used on Gutenberg where disabled controls use aria-disabled="true" instead of a disabled attribute, the styles that come from buttons.css, colors.css, and potentially other stylesheets should be adapted to ensure the aria-disabled buttons get a consistent focus style.

Reminder: using aria-disabled="true":

  • Helps making controle discoverable, for better general usability.
  • Helps preventing focus losses when controls are disabled, as they are still focusable.

Change History (0)

Note: See TracTickets for help on using tickets.