amphtml
amphtml copied to clipboard
AMP email `amp-accordion` documentation examples not working
Description
Bug issue 1. All 6 amp-accordion preview examples for AMP email are not working correctly in the docs page.
- Expected behavior: when you click on the "Section 1", "Section 2", or "Section 3", it should drop down and display the text or image content.
- Current behavior: clicking on the different sections doesn't display the text or image content.
Bug issue 2. For the [data-expand] amp-accordion AMP email example, the "Open this snippet in playground" example is not working correctly.
- Expected behavior: "Expand section 1" button will expand and display section 1 content; "Collapse section 1" will collapse section 1
- Current behavior: Both buttons are not working.
The amp-bind script line is missing in the
tag:<script async custom-element="amp-bind" src="https://cdn.ampproject.org/v0/amp-bind-0.1.js"></script>
If you add that in, the amp-accordion example will work correctly.
Reproduction Steps
Bug issue 1:
- Go to amp-accordion documentation page for AMP email
- Click "Section 1", "Section 2", or "Section 3" for any of the amp-accordion examples. The sections are supposed to expand.

Bug issue 2:
- Go to amp-accordion.example.4
- Click on "Expand section 1" and "Collapse section 1" - both buttons are not working.

Relevant Logs
No response
Browser(s) Affected
Chrome, Firefox
OS(s) Affected
No response
Device(s) Affected
No response
AMP Version Affected
No response
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
This is more of an amp-accordion issue.