Compiled site CSS should not contain any Storybook-specific styles

Created on 5 November 2025, 1 day ago

Problem/Motivation

A few components have some CSS just for Storybook, using selectors prefixed with .storybook-component-*. This CSS ends up in the site's CSS, which is not ideal. Even though it's not much, it doesn't belong there. We should handle this another way, I'm assuming there is a way to add CSS for Storybook via some other method.

Steps to reproduce

Install Drupal CMS, see that the aggregated CSS contains Storybook selectors.

Proposed resolution

Remove this CSS and ensure it doesn't get added again.

Separately, maybe in a follow up, figure out how to load the necessary CSS for Tailwind.

πŸ› Bug report
Status

Active

Version

1.0

Component

CSS

Created by

πŸ‡¦πŸ‡ΊAustralia pameeela

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024