•  
      request #42192 Use globals for Storybook background and theme
    Infos
    #42192
    Joris MASSON (jmasson)
    2025-03-05 16:57
    2025-03-05 14:36
    43860
    Details
    Use globals for Storybook background and theme

    In Storybook 8.3, a new API has been released called globals. It's a way to define global variables (such as the background color, color theme, user locale, etc.). There is a feature flag to enable it for backgrounds. We should enable it, as it fixes a bug where if you change the background color once and then reset, the stories that were purposefully built for the "dark" background will switch back to white. With globals API, they stay with dark background as expected.

    TLP
    Empty
    Empty
    • [ ] enhancement
    • [x] internal improvement
    Empty
    Stage
    Joris MASSON (jmasson)
    Closed
    2025-03-05
    Attachments
    Empty
    References

    Follow-ups