ic-design-system icon indicating copy to clipboard operation
ic-design-system copied to clipboard

skeleton\card code example on site does not match preview

Open ad9242 opened this issue 11 months ago • 1 comments

Summary of the bug

In the following example, it shows a card with skeleton content which then gets replaced with actual content. This works in the code preview, but the code does not do this when launching the stackblitz

https://design.sis.gov.uk/components/skeleton/code#within-iccard-component

🪜 How to reproduce

Tell us the steps to reproduce the problem:

  1. Go to page: https://design.sis.gov.uk/components/skeleton/code/#within-iccardvertical-component
  2. see that the example starts as card with skeleton content, then changes to actual content
  3. Launch the stackblitz code
  4. The skeleton content does not get replaced

🧐 Expected behaviour

The code should match what is being shown in the preview: ie the content should get replaced

This could be covered by #619

ad9242 avatar Jan 24 '25 13:01 ad9242

confirmed this is still an issue in Stackblitz - the skeleton never gets replaced with actual content.

To recreate:

  1. Go to page: https://design.sis.gov.uk/components/skeleton/code/#within-iccardvertical-component
  2. see that the example starts as card with skeleton content, then changes to actual content
  3. Launch the stackblitz code
  4. The skeleton content does not get replaced

There is also no button to reset the example like is shown in the code preview window

ad9242 avatar May 01 '25 12:05 ad9242