ec-europa / europa-component-library

ECL - Europa Component Library
https://ec.europa.eu/component-library
European Union Public License 1.1
129 stars 35 forks source link

Menu / Mega menu - HTML code missing #3716

Open joarod-eu opened 1 week ago

joarod-eu commented 1 week ago

Expected behavior

Checking the Menu, Mega menu and Site header components, I want to see the HTML code in the Showcase tab. The rendered example should match with the current HTML code displayed in this tab.

Actual behavior

The menu (blue bar) it renders fine, but the code doesn't show this part in any of the three components, I can only see the header code without the menu. However the playground/storybook has this HTML code as expected.

Steps to reproduce the issue

Visit any of these links and scroll down to check the HTML code. Click on "Show more" and you will see that the code for the menu is missing. https://ec.europa.eu/component-library/ec/components/navigation/mega-menu/code/ https://ec.europa.eu/component-library/ec/components/navigation/menu/code/ https://ec.europa.eu/component-library/ec/components/site-wide/site-header/code/

*Same code missing for EU components

planctus commented 1 day ago

Thanks for reporting this, will be fixed in the next ECL release.