Make WordPress Core


Ignore:
Timestamp:
01/21/2025 09:47:27 PM (2 months ago)
Author:
audrasjb
Message:

Themes: Remove title attributes from theme list tables.

This changeset updates the old list tables for themes and theme installation to remove title attributes or replace them with a more acessible implementation:

  • Removes title attributes from span elements
  • Replaces title with aria-label for links whose visible text starts with the same word, consistently with links on the "Add Plugins" screen
  • Reuses the $preview_title variable to keep ARIA labels consistent for both Preview links

Follow-up to [22439], [27548], [31513], [32991], [50804], [53414].

Props karlgroves, sabernhardt, audrasjb, alh0319.
Fixes #62834.
See #24766.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-themes-list-table.php

    r58745 r59675  
    212212            $actions             = array();
    213213            $actions['activate'] = sprintf(
    214                 '<a href="%s" class="activatelink" title="%s">%s</a>',
     214                '<a href="%s" class="activatelink" aria-label="%s">%s</a>',
    215215                $activate_link,
    216216                /* translators: %s: Theme name. */
Note: See TracChangeset for help on using the changeset viewer.