storybookjs/storybook

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

Fechada

#35.067 aberto em 5 de jun. de 2026

 (3 comentários) (1 reação) (0 responsável)TypeScript (10.058 forks)batch import
addon: viewportbuggood first issuesev:S4ui

Métricas do repositório

Stars
 (89.909 estrelas)
Métricas de merge de PR
 (Mesclagem média 7d 22h) (184 fundiu PRs em 30d)

Description

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

Guia do colaborador