Files
webstudio/apps
Oleg Isonen 02f62eeaf2 fix: Keep style source clicks from focusing the input (#6717)
Clicking a style source or the empty space around it no longer moves
focus to the new source input. Keyboard navigation that focuses the
field container still moves focus into the input.

The field now forwards focus only when the container itself receives
focus. It prevents a mouse click on empty container space from
triggering that focus path. Source buttons keep their own focus and menu
behavior.

- [x] Update focus behavior for source controls and the field container.
- [x] Add a browser regression test; confirmed it failed before the fix
and passes now.
- [x] Run the focused browser tests (14 passed), Builder typecheck,
formatting, and lint.
- [x] Review documentation impact: existing Style panel guidance still
applies; no doc change needed.
- [x] Review fixture impact: no fixture inputs or outputs changed.
- [ ] CI: Builder core jobs and visual regression remain red for the
separate failures below.

CI findings on the latest commit:
- The changed Style sources test passes in the full Builder suite.
Builder app tests, end to end shards, lint, and submodule checks pass.
- Builder core jobs fail in static publish tests with varying timeouts
and assertions under the full suite. The five static publish tests pass
when run alone locally. See the [main
workflow](https://github.com/webstudio-is/webstudio/actions/runs/44212698257).
- Visual regression reports a 440 pixel difference in the Color Picker
Oklch story. This PR does not change that story or its styles. The same
difference appeared on retry. See the [visual
workflow](https://github.com/webstudio-is/webstudio/actions/runs/44212698286).

No migrations or data changes.

Closes #6716
2026-11-18 03:45:00 +01:00
..