Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[addon-design-assets]: asset select button is not highlighted automatically #13805

Closed
iwan-uschka opened this issue Feb 3, 2021 · 1 comment

Comments

@iwan-uschka
Copy link

Describe the bug
When adding multiple assets the first asset is shown automatically but the related button at the bottom right is not highlighted automatically.

To Reproduce
Add some assets like

Story.parameters = {
  assets: [
    { name: "Mobile", url: require("./path/to/file1.jpg") },
    { name: "Tablet", url: require("./path/to/file1.jpg") },
    {
      name: "Desktop",
      url: require("./path/to/file1.jpg"),
    },
  ],
};

Select "Design Assets" tab in storybook and check it out.

Expected behavior
Related button is highlighted.

Screenshots
Bildschirmfoto 2021-02-03 um 19 05 50

System

"@storybook/addon-actions": "^6.1.14",
"@storybook/addon-design-assets": "^6.1.16",
"@storybook/addon-essentials": "^6.1.14",
"@storybook/addon-links": "^6.1.14",
"@storybook/addon-viewport": "^6.1.14",
"@storybook/react": "^6.1.14",

Additional context
Add any other context about the problem here.

@shilman
Copy link
Member

shilman commented Feb 17, 2021

we're going to deprecate this addon and are recommending https://github.com/pocka/storybook-addon-designs. closing.

@shilman shilman closed this as completed Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants