storybookjs/storybook

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

已关闭

#35,067 创建于 2026年6月5日

 (3 条评论) (1 个反应) (0 位负责人)TypeScript (10,058 个派生)batch import
addon: viewportbuggood first issuesev:S4ui

仓库指标

星标
 (89,909 个星标)
PR 合并指标
 (平均合并 7天 22小时) (30 天内合并 184 个 PR)

描述

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

贡献者指南