ampproject / amphtml

The AMP web component framework.
https://amp.dev
Apache License 2.0
14.89k stars 3.89k forks source link

AMP email `amp-accordion` documentation examples not working #38246

Open bdjang opened 2 years ago

bdjang commented 2 years ago

Description

Bug issue 1. All 6 amp-accordion preview examples for AMP email are not working correctly in the docs page.

Bug issue 2. For the [data-expand] amp-accordion AMP email example, the "Open this snippet in playground" example is not working correctly.

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:

  1. Go to amp-accordion documentation page for AMP email
  2. Click "Section 1", "Section 2", or "Section 3" for any of the amp-accordion examples. The sections are supposed to expand.

Screen Shot 2022-05-26 at 8 26 17 PM

Bug issue 2:

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

Screen Shot 2022-05-26 at 8 25 16 PM

Relevant Logs

No response

Browser(s) Affected

Chrome, Firefox

OS(s) Affected

No response

Device(s) Affected

No response

AMP Version Affected

No response

stale[bot] commented 1 year ago

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.

ychsieh commented 7 months ago

This is more of an amp-accordion issue.