WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/29/2019 06:43:09 PM (18 months ago)
Author:
afercia
Message:

Coding Standards: Clean up the Site Health stylesheet.

  • reduces selectors specificity to avoid over-qualified selectors
  • removes unused rulesets / properties
  • renames some CSS classes

Fixes #46685.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/site-health.php

    r45070 r45071  
    3636?>
    3737
    38 <div class="wrap health-check-header">
    39     <div class="title-section">
     38<div class="health-check-header">
     39    <div class="health-check-title-section">
    4040        <h1>
    4141            <?php _ex( 'Site Health', 'Menu, Section and Page Title' ); ?>
     
    4848            </svg>
    4949            <span class="screen-reader-text"><?php _e( 'Current health score:' ); ?></span>
    50             <span class="progress-count"></span>
     50            <span class="site-health-progress-count"></span>
    5151        </div>
    5252    </div>
    5353
    54     <nav class="tabs-wrapper" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
    55         <a href="<?php echo esc_url( admin_url( 'site-health.php' ) ); ?>" class="tab active" aria-current="true">
     54    <nav class="health-check-tabs-wrapper" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
     55        <a href="<?php echo esc_url( admin_url( 'site-health.php' ) ); ?>" class="health-check-tab active" aria-current="true">
    5656            <?php _e( 'Status' ); ?>
    5757        </a>
    5858
    59         <a href="<?php echo esc_url( admin_url( 'site-health.php?tab=debug' ) ); ?>" class="tab">
     59        <a href="<?php echo esc_url( admin_url( 'site-health.php?tab=debug' ) ); ?>" class="health-check-tab">
    6060            <?php _e( 'Info' ); ?>
    6161        </a>
     
    6565</div>
    6666
    67 <div class="wrap health-check-body">
     67<div class="health-check-body">
    6868    <div class="site-status-all-clear hide">
    6969        <p class="icon">
     
    8787        <p><?php _e( 'The site health check shows critical information about your WordPress configuration and items that require your attention.' ); ?></p>
    8888
    89         <div class="issues-wrapper" id="health-check-issues-critical">
     89        <div class="site-health-issues-wrapper" id="health-check-issues-critical">
    9090            <h3>
    9191                <span class="issue-count">0</span> <?php _e( 'Critical issues' ); ?>
     
    9595        </div>
    9696
    97         <div class="issues-wrapper" id="health-check-issues-recommended">
     97        <div class="site-health-issues-wrapper" id="health-check-issues-recommended">
    9898            <h3>
    9999                <span class="issue-count">0</span> <?php _e( 'Recommended improvements' ); ?>
     
    104104    </div>
    105105
    106     <div class="view-more">
     106    <div class="site-health-view-more">
    107107        <button type="button" class="button site-health-view-passed" aria-expanded="false" aria-controls="health-check-issues-good">
    108108            <?php _e( 'Passed tests' ); ?>
     
    110110    </div>
    111111
    112     <div class="issues-wrapper hidden" id="health-check-issues-good">
     112    <div class="site-health-issues-wrapper hidden" id="health-check-issues-good">
    113113        <h3>
    114114            <span class="issue-count">0</span> <?php _e( 'Items with no issues detected' ); ?>
Note: See TracChangeset for help on using the changeset viewer.