Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix style issues in Storybook production build
The Storybook production build injects some CSS into the iframe used to render the stories. This uses nesting, which while well supported in browsers, causes issues with some build tooling which is not expecting it. The `vite-plugin-html` minifies the CSS in any `style` tags by default, but this minification process does not account for nested CSS. The net result of this is that some of the styles which are expected to be scoped to `.sb-errordisplay` end up applying globally instead. The most obvious manifestation of this was on the PipelineRun details story where there was an additional gap between each Task in the TaskTree caused by an unexpected `li+li` rule. Disable CSS minification in the HTML plugin since we don't need this for Storybook, and don't make use of `style` tags as part of the template for the Dashboard application itself.
- Loading branch information