Make WordPress Core

Changeset 57776


Ignore:
Timestamp:
03/05/2024 02:26:01 PM (9 months ago)
Author:
audrasjb
Message:

Plugins: Fix an overlap issue with plugin cards dependencies notice.

This changeset fixes an issue where plugin card dependencies notice and plugin icon were overlapping in some cases.

Props costdev, euthelup, shailu25, desrosj, swissspidy, audrasjb.
Fixes #60501.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/list-tables.css

    r57679 r57776  
    15961596}
    15971597
    1598 .plugin-card .plugin-dependencies {
    1599     background-color: #e5f5fa;
    1600     border-left: 3px solid #72aee6;
    1601     margin-bottom: .5em;
     1598.plugin-card .notice.plugin-dependencies {
     1599    margin: auto 20px 20px;
    16021600    padding: 15px;
    16031601}
  • trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php

    r57679 r57776  
    674674                    <p class="authors"><?php echo $author; ?></p>
    675675                </div>
    676                 <?php echo $this->get_dependencies_notice( $plugin ); ?>
    677676            </div>
     677            <?php
     678            $dependencies_notice = $this->get_dependencies_notice( $plugin );
     679            if ( ! empty( $dependencies_notice ) ) {
     680                echo $dependencies_notice;
     681            }
     682            ?>
    678683            <div class="plugin-card-bottom">
    679684                <div class="vers column-rating">
     
    781786
    782787        $dependencies_notice = sprintf(
    783             '<div class="plugin-dependencies"><p class="plugin-dependencies-explainer-text">%s</p> %s</div>',
     788            '<div class="plugin-dependencies notice notice-alt notice-info inline"><p class="plugin-dependencies-explainer-text">%s</p> %s</div>',
    784789            '<strong>' . __( 'Additional plugins are required' ) . '</strong>',
    785790            $dependencies_list
Note: See TracChangeset for help on using the changeset viewer.