Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(demo, intranet-header-workspace): Refactor intranet-header demo (…
…#2832) ### Why this big refactor? Starting with #2829 and other old issue, the intranet-header has quite some issues when we try to debug it: * The preview style applied to integrate the samples in the demo app is an override mess and exposes other issue (check on mobile how the active button is going outside the box for example) * Replicating the code into the intranet-header-workspace didn't give us the same result, especially as there is some added code in `styles.scss` in the intranet-header-workspace Also, the `isPreview` and `.preview` class were probably already copied from the user, even with all the warnings on the page. I know that the demo app is deprecated, and we should avoid changing it, but it is at the moment the only way to display the intranet-header for the public, and we don't know how long until we'll have another way. ### What are the changes * This proposal gives us two ways to debug the intranet-header either through the demo app or through the intranet-header-workspace. * A lot of unnecessary demo styles are removed * Demos are displayed through the usage of iframe
- Loading branch information