mirror of
https://github.com/Matysh/houseplan-card
synced 2026-10-02 21:01:21 +00:00
fix(stairs): лестница-переход без рамки фокуса (#686)
Решение владельца 2026-09-28: «убрать рамку фокуса полностью». Навигационная лестница View — фокусируемый `<g role="link" tabindex="0">` (#676), а своих стилей фокуса у `.hp-stair` не было, поэтому браузер рисовал чёрно-белое кольцо по прямоугольнику символа. Теперь `.hp-stair:focus` и `:focus-visible` — `outline: none`: ни кольца браузера, ни замены. Лестница остаётся в порядке Tab, Enter/Пробел по-прежнему переходят; hover и выделение в редакторе не тронуты. Свидетель — `demo/smoke_stairs.mjs`: снимок области лестницы с запасом на кольцо без фокуса и с клавиатурным фокусом (`:focus-visible`) обязан совпасть байт в байт; Enter на сфокусированной лестнице переводит на целевой этаж. Без правила смок красный (`focusedStairPaintsNoFrame`). STAIRS.md и оба changelog. Issue: #686 User-Visible: yes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018qZfe7YS4rqEMKoVeS3GKd
This commit is contained in:
@@ -2,6 +2,11 @@
|
||||
|
||||
## Unreleased
|
||||
|
||||
- A floor-link stair in View no longer shows the browser's black-and-white
|
||||
focus frame when it receives focus; it can still be reached with Tab and
|
||||
followed with Enter or Space
|
||||
([#686](https://github.com/Matysh/houseplan-card/issues/686)).
|
||||
|
||||
## v1.78.0-beta.7 — 2026-09-28
|
||||
|
||||
- Stairs now have two independent line and fill colours with opacity controls. A
|
||||
|
||||
@@ -8,6 +8,11 @@
|
||||
|
||||
## Не выпущено
|
||||
|
||||
- Лестница-переход в режиме просмотра больше не показывает чёрно-белую рамку
|
||||
фокуса браузера; до неё по-прежнему можно дойти клавишей Tab и перейти по
|
||||
Enter или Пробелу
|
||||
([#686](https://github.com/Matysh/houseplan-card/issues/686)).
|
||||
|
||||
## v1.78.0-beta.7 — 2026-09-28
|
||||
|
||||
- У лестниц появились два собственных цвета: для линий и для заливки, а также
|
||||
|
||||
+3
-1
@@ -57,7 +57,9 @@ state); a missing, self, deleted or fixed-floor target shows no tooltip.
|
||||
|
||||
In an ordinary multi-space card, a clean click/tap or keyboard activation on a
|
||||
valid stair switches to the target tab and restores that floor's remembered
|
||||
camera. Pan, pinch, long press, swipe and pointer cancellation do not navigate.
|
||||
camera. A focused stair link draws no focus indicator — neither the browser's
|
||||
ring nor an outline of its own (owner's decision, #686); it stays in the Tab
|
||||
order, and Enter or Space still follow it. Pan, pinch, long press, swipe and pointer cancellation do not navigate.
|
||||
In a card configured with `floor`, stairs are visible but inert. The target
|
||||
floor receives no automatic stair, highlight or camera centring.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user