Making WordPress.org


Ignore:
Timestamp:
04/20/2017 03:44:38 PM (9 years ago)
Author:
ocean90
Message:

Plugin Directory: Provide more context for "Read more" and "Show less" buttons to improve accessibility.

Props SergeyBiryukov, joedolson.
Fixes #2292.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/client/components/plugin/sections/developers/index.jsx

    r5024 r5394  
    1616    <div>
    1717        <div id="developers" className="section read-more plugin-developers">
    18             <h2>{ translate( 'Contributors & Developers' ) }</h2>
     18            <h2 id="developers-header">{ translate( 'Contributors & Developers' ) }</h2>
    1919            <p>
    2020                { translate( 'This is open source software. The following people have contributed to this plugin.' ) }
     
    3737            </p>
    3838        </div>
    39         <button type="button" className="button-link section-toggle" aria-controls="developers" aria-expanded="false">
     39        <button
     40            type="button"
     41            className="button-link section-toggle"
     42            aria-controls="developers"
     43            aria-describedby="developers-header"
     44            aria-expanded="false"
     45        >
    4046            { translate( 'Read more' ) }
    4147        </button>
Note: See TracChangeset for help on using the changeset viewer.