question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

add-backgrounds doesn't seem to show configured default background

See original GitHub issue

Describe the bug The configured background only seems to ‘appear’ when I’m resizing the window.

Expected behavior I expect the backgrounds add on to show the background that I’ve set as default in config.js

Screenshots https://gyazo.com/692513518902f8e403036d29b4ee5c28

Code snippets

addParameters({
  backgrounds: [
    { name: "E3 Darker Orange", value: "#F15C29", default: true}
  ]
})

System:

  • OS: MacOS
  • Device: macbook pro 2015
  • Browser: chrome
  • Framework: react
  • Addons: addon-backgrounds
    "@storybook/addon-actions": "^5.0.11",
    "@storybook/addon-backgrounds": "^5.0.11",
    "@storybook/addon-links": "^5.0.11",
    "@storybook/addons": "^5.0.11",
    "@storybook/react": "^5.0.11",
    "react": "^16.8.6",
    "react-dom": "^16.8.6",

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
ghostcommented, Jul 26, 2019

I solved this for myself by calling addParameters before configure.

Will try this later

This did not work

example:

addDecorator(withKnobs);
addDecorator(withInfo);

// add backgrounds and viewports
addParameters({
  backgrounds: [
    { name: "Black", value: "#888888", default: true}
  ],
  viewport: {
    viewports: {
      ...INITIAL_VIEWPORTS,
      ...newViewports
    }
  }
})

// configure storybook
configure(loadStories, module);
2reactions
djgrantcommented, Jun 5, 2019

I solved this for myself by calling addParameters before configure.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't change Desktop background - Microsoft Community
Can't change Desktop background · 1. Press Windows + R key to open Run window. · 2. Click on Ease of Access Center....
Read more >
Changing your Virtual Background image - Zoom Support
The Virtual Background feature allows you to display an image or video as your background during a Zoom meeting, which can provide you......
Read more >
Manage wallpapers & home screen theme - Google Support
To set up one device at a time, go to Manage Google Meet hardware. You can upload custom wallpapers in the Google Admin...
Read more >
Adding wallpapers in GNOME Shell - Unix Stack Exchange
/usr/share/gnome-background-properties/desktop-backgrounds-default.xml holds the settings for the wallpapers; while there doesn't seem to be ...
Read more >
WordPress Background Images: How to Add, Edit ... - Kinsta
You're often able to implement unique backgrounds with the help of custom CSS or plugins (or both). We show you both methods in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found