Make WordPress Core

Opened 11 years ago

Closed 9 years ago

Last modified 8 years ago

#36627 closed defect (bug) (fixed)

Theme preview/details: change non-links to buttons and remove disabled buttons from tabindex

Reported by: walbo Owned by: afercia
Priority: normal Milestone: 5.1
Component: Themes Version:
Severity: normal Keywords: has-patch semantic-buttons
Cc: Focuses: accessibility, javascript

Description

The next/prev theme navigation gets the classname .disabled but is still available in the tabindex. Also the navigation is non-links <a href="#"> that should be <button>.

If you previewing a installed theme, there is a non-link thats says installed. The link should not be a link.

Attachments (5)

36627.patch​ (5.5 KB ) - added by walbo 11 years ago.
36627.02.patch​ (5.5 KB ) - added by walbo 11 years ago.
disabled Screen Shot 2018-03-12 at 20.27.44.png​ (24.4 KB ) - added by afercia 9 years ago.
This button looks disabled but is still focusable
36627.03.patch​ (834 bytes ) - added by walbo 9 years ago.
36627.diff​ (2.3 KB ) - added by afercia 9 years ago.

Download all attachments as: .zip

Change History (14)

#1 @walbo
11 years ago

  • Keywords has-patch added

#2 @afercia
10 years ago

  • Focuses javascript added
  • Keywords needs-refresh added
  • Milestone Awaiting Review → Future Release

Thanks @walbo yes the theme browser needs some accessibility improvements and many of the points you outlined are perfectly valid. Many things have changed in the last months, see for example [38084] that added a disabled attribute on the next/prev navigation to take them out from the tab order when they're... disabled :)

Other things need to be fixed yet, for example some buttons miss a type="button" attribute and the JS part could be probably simplified. Also, some links (with a few exceptions for the ones that still work when JS is off) need to be buttons.

I'd suggest to keep things separated though and open a separate ticket for the theme installer. Keeping the issues related to the theme browser in this ticket and addressing the theme installer issues in a separate ticket would help to make things more clear for other contributors and reviewers.

#3 @afercia
9 years ago

  • Keywords semantic-buttons added

This ticket was mentioned in ​Slack in #accessibility by afercia. ​View the logs.


9 years ago

#5 @afercia
9 years ago

  • Milestone Future Release → 5.0

Just checked again this and seems to me a few things have changed and there's only one point to address:

in the theme installer, the buttons that look "disabled" are still focusable and it is possibel to Tab to them. They should use a disabled attribute. See screenshot below.

#6 @walbo
9 years ago

@afercia Updated the patch so to add disabled attribute to the buttons when disabled.

#7 @afercia
9 years ago

  • Keywords needs-refresh removed

36627.diff​ avoids a focus loss when navigation is at the first or last theme, and improves the buttons accessibility text.

#8 @afercia
9 years ago

  • Owner set to afercia
  • Resolution → fixed
  • Status new → closed

In 43020:

Accessibility: Improve the Themes Installer navigation buttons accessibility.

  • really disables buttons when they look disabled (when navigation is at the first or last theme)
  • when navigation is at the first or last theme, moves focus to the other navigation button, to avoid a focus loss
  • improves the buttons visually hidden accessibility text

Props walbo, afercia.
Fixes #36627.

#9 @johnbillion
8 years ago

  • Milestone 5.0 → 5.1
Note: See TracTickets for help on using tickets.