Skip to content

web: avoid CSS strings concatenation in the `EnterpriseStory` component

Warren Gifford requested to merge vb/storybook-decorator-components into main

Created by: valerybugakov

Changes

  • Now, enterprise styles are inserted into a separate style tag.

Based on the discussion.

Notes

I've tried the approach with the array of styles passed to the <WebStory />, but it adds a lot of extra complexity to the useStyles hook that we don't actually need — generic solution for any number of stylesheets. Calling useStyles explicitly for additional styles passed to the <WebStory /> looks like a good compromise.

Merge request reports

Loading