Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(react-storybook-addon-export-to-sandbox): adjust selector to support SB 10#35801

Open
mainframev wants to merge 2 commits intomicrosoft:masterfrom
mainframev:fix/sb-addon-support-v10
Open

fix(react-storybook-addon-export-to-sandbox): adjust selector to support SB 10#35801
mainframev wants to merge 2 commits intomicrosoft:masterfrom
mainframev:fix/sb-addon-support-v10

Conversation

@mainframev
Copy link
Contributor

@mainframev mainframev commented Feb 27, 2026

Storybook 10 changes anchor IDs for primary stories in docs mode. In SB9, all story containers use id="anchor--{storyId}". In SB10, the primary block renders the primary story with id="anchor--primary--{storyId}" (storybookjs/storybook#33384).

Previous Behavior

tested in separate SB 10 setup

Error: css selector: #anchor--example-button--primary .docs-story, doesn't exist

Screenshot 2026-02-27 at 21 33 49

New Behavior

Screenshot 2026-02-27 at 20 37 35

Related Issue(s)

@github-actions
Copy link

github-actions bot commented Feb 27, 2026

📊 Bundle size report

✅ No changes found

@mainframev mainframev force-pushed the fix/sb-addon-support-v10 branch from 00e5696 to 96beb7a Compare February 27, 2026 20:27
@mainframev mainframev changed the title fix(react-storybook-addon-export-to-sandbox): adjust selector fix(react-storybook-addon-export-to-sandbox): adjust selector to support SB 10 Feb 27, 2026
@github-actions
Copy link

Pull request demo site: URL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Storybook 10 private API changes affecting you

1 participant