Opened 8 years ago
Closed 7 years ago
#2292 closed defect (bug) (fixed)
read more/read less button on new plugin directory labeling
Reported by: | joedolson | Owned by: | ocean90 |
---|---|---|---|
Milestone: | Plugin Directory v3.0 | Priority: | normal |
Component: | Plugin Directory | Keywords: | has-patch commit |
Cc: |
Description
Read more and read less buttons in the plugin directory don't provide sufficient context governing what you're opening or closing. They use the aria-controls
attribute to indicate what they control, but support for this is extremely limited by assistive technology.
I recommend using either aria-label or aria-describedby to provide context for the button.
Attachments (1)
Change History (6)
#3
@
8 years ago
For example,
<button type="button" class="button-link section-toggle" aria-controls="description" aria-expanded="false" data-show-less="Show less" data-read-more="Read more" aria-describedby="description-header" >Read more</button>
along with
<div id="description" class="section read-more" > <h2 id="description-header">Description</h2>
That would be the DRY solution, since it doesn't require additional strings.
Note: See
TracTickets for help on using
tickets.
Sounds good! Could help me with a more concrete example of what it should look like?