Making WordPress.org


Ignore:
Timestamp:
12/04/2016 04:26:03 PM (8 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/client/components/plugin/sections/index.jsx

    r4410 r4464  
    77        return (
    88            <div>
    9                 <div id={ this.props.slug } className="section read-more" aria-expanded="false">
     9                <div id={ this.props.slug } className="section read-more">
    1010                    <h2>{ this.props.title }</h2>
    1111                    <div dangerouslySetInnerHTML={ { __html: this.props.content } } />
    1212                </div>
    13                 <button type="button" className="button-link section-toggle" aria-controls={ this.props.slug }>Read more</button>
     13                <button type="button" className="button-link section-toggle" aria-controls={ this.props.slug } aria-expanded="false">Read more</button>
    1414            </div>
    1515        )
Note: See TracChangeset for help on using the changeset viewer.