WordPress.org

Make WordPress Core

Opened 7 months ago

Last modified 6 months ago

#40747 new enhancement

Semantic elements for non-link links: theme-install.php

Reported by: Cheffheid Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: Administration Keywords: semantic-buttons has-patch
Focuses: ui, accessibility Cc:

Description

The filters on the theme install page (Featured, Popular, Latest, Favorites) are currently marked up with anchor tags, but they should be marked up with buttons.

A downside to doing so is that the focus styles persist when the buttons are clicked, which may not look great.

Attached first pass patch removes the outline on focus for browsers that add one by default (Chrome, IE11, Edge, possibly Safari) to minimize the effect, but would definitely appreciate some help in coming up with a good solution for it instead.

Attachments (1)

40747.patch (4.0 KB) - added by Cheffheid 7 months ago.
First pass - changes anchors to buttons, updates CSS / JS selectors to include buttons.

Download all attachments as: .zip

Change History (5)

@Cheffheid
7 months ago

First pass - changes anchors to buttons, updates CSS / JS selectors to include buttons.

#1 @Cheffheid
7 months ago

Changes in action in Chrome, sans outline:

http://i.imgur.com/g72onPE.gif

#2 @Cheffheid
7 months ago

  • Keywords semantic-buttons has-patch added

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


6 months ago

#4 @afercia
6 months ago

  • Focuses ui added
  • Milestone changed from Awaiting Review to Future Release
  • Version trunk deleted
Note: See TracTickets for help on using tickets.