storybookjs/storybook

[Bug]: Custom viewport does not highlight the Viewport tool as active in the toolbar

Geschlossen

#35.067 geöffnet am 05.06.2026

 (3 Kommentare) (1 Reaktion) (0 zugewiesene Personen)TypeScript (10.058 Forks)batch import
addon: viewportbuggood first issuesev:S4ui

Repository-Metriken

Stars
 (89.909 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 7T 22h) (184 gemergte PRs in 30 T)

Beschreibung

Describe the bug

Notice the unselected/inactive state of the viewport Select when a custom viewport is selected:

Current

Expected

Reproduction link

https://635781f3500dd2c49e189caf-catbijidrf.chromatic.com/?path=/story/core-configs--action-b&globals=viewport.value:440-355

Reproduction steps

  1. Open a story
  2. Set a viewport in the toolbar
  3. Customise the viewport
  4. Observe the toolbar viewport select with your eyes 👀

System

N/A

Additional context

No response

Contributor Guide