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-backgrounds: Migrate to story globals #27523

Closed
3 tasks
Tracked by #27210
shilman opened this issue Jun 3, 2024 · 0 comments · Fixed by #26654
Closed
3 tasks
Tracked by #27210

Addon-backgrounds: Migrate to story globals #27523

shilman opened this issue Jun 3, 2024 · 0 comments · Fixed by #26654
Assignees
Labels
addon: backgrounds maintenance User-facing maintenance tasks

Comments

@shilman
Copy link
Member

shilman commented Jun 3, 2024

Describe the problem

Story globals simplifies how to configure globals at the story level. We should update the Backgrounds addon.

  • Figure out a final API
    • globals for storing/accessing state
  • Update documentation

Before

export const Story = {
  parameters: {
    backgrounds: {
      default: 'red',
      grid: { ... },
    },
  },
};

After (TBD)

export const Story = {
  globals: {
    'backgrounds.value': 'red',
    'backgrounds.grid': true,
  },
};

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addon: backgrounds maintenance User-facing maintenance tasks
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants