Making WordPress.org


Ignore:
Timestamp:
12/04/2016 04:26:03 PM (9 years ago)
Author:
obenland
Message:

Correct usage of aria-expanded attribute.

It belongs on the toggeling element, not the element that is being expanded.

Fixes #2291.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/section.php

    r4410 r4464  
    1616    <?php if ( $section_read_more ) : ?>
    1717        class="section read-more"
    18         aria-expanded="false"
    1918    <?php else: ?>
    2019        class="section"
     
    2928    class="button-link section-toggle"
    3029    aria-controls="<?php echo esc_attr( $section_slug ); ?>"
     30    aria-expanded="false"
    3131    data-show-less="<?php esc_attr_e( 'Show less', 'wporg-plugins' ); ?>"
    3232    data-read-more="<?php esc_attr_e( 'Read more', 'wporg-plugins' ); ?>"
Note: See TracChangeset for help on using the changeset viewer.