Making WordPress.org


Ignore:
Timestamp:
02/09/2016 09:51:24 PM (10 years ago)
Author:
coffee2code
Message:

Handbook plugin: Improve the design of the callout boxes.

  • Only display prefix denoting the type of callout box being shown as screen-reader-text.
  • Use dashicons fully through CSS rather than via HTML placeholder.
  • Use flag dashicon for alerts.
  • Some padding tweaks.

Props McGuive7.
Fixes #630.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/callout-boxes.php

    r1430 r2489  
    131131
    132132            // Message prefix.
    133             $prefix = '<strong>' . $this->shortcodes[ $shortcode ] . '</strong>';
     133            $prefix = '<span class="screen-reader-text">' . $this->shortcodes[ $shortcode ] . '</span>';
    134134
    135135            // Content with prefix.
     
    138138            // Callout box output.
    139139            $output .= "<div class='callout {$class}'>";
    140             $output .= '<div class="dashicons"></div>'; // Icon holder
    141140            $output .= apply_filters( 'the_content', $content );
    142141            $output .= '</div>';
Note: See TracChangeset for help on using the changeset viewer.