Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accordion not opening on contentstack test-env, but opens on constantstack preview page #139

Open
EvieCutrell opened this issue Oct 30, 2024 · 1 comment

Comments

@EvieCutrell
Copy link

Please verify the version of auro-accordion you have installed

4.0.2

Please describe the bug

  1. Go to "https://app.contentstack.com/#!/stack/blt2cefe12c88e9dd91/content-type/flex_page/en-us/entry/bltaaa8f8ac23324e11/edit?branch=main"
  2. Ensure you're on Version 31 in the top right.
  3. Click "Live Preview"
  4. Preview window opens up
  5. Open the "API Documentation" accordion on the sidenav.
  6. Accordion elements are cut short (there should be more there), but still appears.
  7. Copy live-preview URL (https://retrostack-test-frontdoor.azurefd.net/content/ndc/release-notes)
  8. Paste the url into a new tab for a 'normal' view of the page
  9. The sidenav now takes up half of the usable space because of how far the accordion chevron extends
  10. The accordion no longer opens/shows any content regardless of screen resolution (desktop vs mobile)
    actual-test-page
    live-preview

Reproducing the error on the docsite

None

Expected behavior

Accordion should work similar to how it does in the following link: https://codepen.io/ecutrell/pen/MWMOrgr
*accordion should show contents when open
*scrollable section or not text wrapping
*all 8 lines are visible when open and not cut off

Code on Codepen and Contentstack are exactly the same.

What browsers are you seeing the problem on?

Chrome

Additional context

If unable to access contentstack env or any other questions please feel free to reach out to myself; Evelynn Cutrell

Exit criteria

No response

@EvieCutrell EvieCutrell added auro-accordion not-reviewed Issue has not been reviewed by Auro team members Type: Bug Bug or Bug fixes labels Oct 30, 2024
@Patrick-Daly-AA Patrick-Daly-AA removed their assignment Oct 31, 2024
@marnel-mangrubang
Copy link

Hi @EvieCutrell, looks like the issue you are seeing in the preview page is caused by loading in the auro-sidenav and auro-accordion bundled js from the CDN. We are already loading in a version of these auro components in the content client so loading in another version could cause a race condition. Simply removing these should make the accordion work in your preview link.

Code to remove from the generic text rendering component inside Contentstack entry:
Screenshot 2024-10-31 at 10 11 27 AM

If you require a later version of either the auro-sidenav or auro-accordion, please work with the ContentEnablement team to get the version we are using throughout our content client.

Also here is an example entry similar to your original page with the bundled js references removed.
https://retrostack-test-frontdoor.azurefd.net/content/copy-accordion-issue

@jason-capsule42 jason-capsule42 removed Type: Bug Bug or Bug fixes not-reviewed Issue has not been reviewed by Auro team members labels Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants