Skip to content

Commit

Permalink
[Accordion] Remove incorrect demo which nests input in button (#22898)
Browse files Browse the repository at this point in the history
  • Loading branch information
croraf committed Oct 5, 2020
1 parent 3e0ce3e commit b99621c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 191 deletions.
91 changes: 0 additions & 91 deletions docs/src/pages/components/accordion/ActionsInAccordionSummary.js

This file was deleted.

91 changes: 0 additions & 91 deletions docs/src/pages/components/accordion/ActionsInAccordionSummary.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions docs/src/pages/components/accordion/accordion.md
Expand Up @@ -33,15 +33,6 @@ Here is an example of customizing the component. You can learn more about this i

{{"demo": "pages/components/accordion/CustomizedAccordions.js"}}

## Additional actions

In order to put an action such as a `Checkbox` or a button inside of the `AccordionSummary`, you need to stop the propagation of the focus and click events to prevent the accordion from
expanding/collapsing when using the action.
You should also provide an `aria-label` for the action, otherwise the label of the nested action will be included in
the label of the parent button that controls the accordion expansion.

{{"demo": "pages/components/accordion/ActionsInAccordionSummary.js", "bg": true}}

## Performance

The content of Accordions is mounted by default even if the accordion is not expanded.
Expand Down

0 comments on commit b99621c

Please sign in to comment.