Skip to content

Commit

Permalink
feat: more-less: add Accessibility section [DAYL-113] (#5111)
Browse files Browse the repository at this point in the history
* feat: more-less: add Accessibility section

* code review feedback: simplify phrasing and add why
  • Loading branch information
margaree authored Nov 13, 2024
1 parent 7383d9c commit 9919fc1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/more-less/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@ The `d2l-more-less` element can be used to minimize the display of long content,
| `height` | String, default: `'4em'` | Maximum height of the content when in "less" mode. The `d2l-more-less` element itself will take up additional vertical space for the fading effect as well as the more/less button itself. |
| `inactive` | Boolean | Whether the component is active or inactive |
<!-- docs: end hidden content -->

## Accessibility

The implementation of the `d2l-more-less` component follows the [W3C Disclosure (Show/Hide) Pattern](https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/). It is worth noting that the content that is visually hidden is not actually hidden from screen reader users since those users can interrupt the screen reader if they do not want to continue listening to the content.

0 comments on commit 9919fc1

Please sign in to comment.