chromaui / storybook-addon-pseudo-states

CSS pseudo-classes for Storybook
MIT License
90 stars 30 forks source link

[Request] Support for Docs page #40

Open riotrah opened 2 years ago

riotrah commented 2 years ago

Hi! Wonderful work here.

I've noticed a recent merge of a PR that ostensibly adds support for docs page, but cannot tell if I's facing a bug, or I've misunderstood that PR. Looking at the code for the PR, and the code as-is in preset/manager.js:

    match: ({ viewMode }) => viewMode === "story",

It looks as though it's still conditionally rendering only in the "Canvas" tab - no?

I'd like to either see its continued presence in the "global" toolbar area no matter the current viewMode, or, see the button in each canvas block in the docs page in addition to existing behavior otherwise.

Regarding the latter suggestion: I'd tried really hard to find API or documentation about configuring or changing the toolbar for the primary story canvas in the docs page, and have had no luck. Would love to know if you guys know any better there.

In any case thanks again! <3