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

貢獻者指南