Make WordPress Core


Ignore:
Timestamp:
02/21/2024 05:32:41 PM (5 months ago)
Author:
costdev
Message:

Plugins: Output plugin card elements in the order they're displayed.

Previously, the notice for listing dependencies in a plugin card was styled with the CSS order properties. This created a mismatch between the visual order and DOM order of elements in the plugin card.

For accessibility, visual order and DOM order must always match when they affect meaning and functionality.

This removes the CSS order properties and outputs the dependencies notice later, making the visual and DOM order match. Some unused/empty CSS is also removed.

Follow-up to [57545].

Props afercia, afragen, bosskhj, huzaifaalmesbah, mukesh27, costdev.
Fixes #60488.

File:
1 edited

Legend:

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

    r57545 r57679  
    525525            // Remove any HTML from the description.
    526526            $description = strip_tags( $plugin['short_description'] );
    527 
    528             $description .= $this->get_dependencies_notice( $plugin );
    529527
    530528            /**
     
    676674                    <p class="authors"><?php echo $author; ?></p>
    677675                </div>
     676                <?php echo $this->get_dependencies_notice( $plugin ); ?>
    678677            </div>
    679678            <div class="plugin-card-bottom">
Note: See TracChangeset for help on using the changeset viewer.