From 55c5aab90ec6367074b960d641a6dd4c920c436f Mon Sep 17 00:00:00 2001 From: umsangdon Date: Fri, 16 Oct 2026 20:31:32 +0900 Subject: [PATCH] =?UTF-8?q?fix(B06):=20356-2=20=ED=9A=A1=EB=8B=A8=20?= =?UTF-8?q?=EC=B9=B4=EB=93=9C=20=EC=B4=88=EC=A0=90=20=EA=B1=B7=EC=9D=8C=20?= =?UTF-8?q?=E2=80=94=20=EB=A7=88=EC=9A=B0=EC=8A=A4=EB=A1=9C=20=EA=B3=A0?= =?UTF-8?q?=EB=A5=B8=20=EB=92=A4=20=ED=82=A4=EB=A5=BC=20=EB=88=8C=EB=9F=AC?= =?UTF-8?q?=EB=8F=84=20=EB=8B=A4=EB=A5=B8=20=EC=83=89=20=ED=85=8C=EB=91=90?= =?UTF-8?q?=EB=A6=AC=20=EC=97=86=EC=9D=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 카드 tabIndex · Enter/Space 고름 지움 · ▲▼ 계획고는 창 듣개 그대로(219-1) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01TteK8mfYZetk5P3bEZkyVZ --- B06_Section/B06_Section_UI_Cross_View.ts | 5 +---- resources/tester/test_356_b06_card_center.py | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 resources/tester/test_356_b06_card_center.py diff --git a/B06_Section/B06_Section_UI_Cross_View.ts b/B06_Section/B06_Section_UI_Cross_View.ts index cda48dec7..9cea10b17 100644 --- a/B06_Section/B06_Section_UI_Cross_View.ts +++ b/B06_Section/B06_Section_UI_Cross_View.ts @@ -183,11 +183,8 @@ export function createCrossSectionCard( const card: CrossCardElement = document.createElement("article"); card.id = `cross-${section.station_id}`; card.className = `b06-cross-card${selected ? " b06-cross-card--selected" : ""}`; - card.tabIndex = 0; + // 초점 없음(356-2) — 마우스로 고른 뒤 키를 눌러도 초점 테두리 안 뜸 · ▲▼ 계획고는 창 듣개(219-1) card.addEventListener("click", () => onSelect(section.station_id)); - card.addEventListener("keydown", (event) => { - if (event.key === "Enter" || event.key === " ") onSelect(section.station_id); - }); // 선택 표시·면적 강조는 **DOM만 갈아 끼운다**. 카드를 새로 만들면 휠 줌·팬(viewBox)이 // 초기화돼 사용자가 맞춰 둔 배율이 날아간다(2026-08-02 사용자 지적). diff --git a/resources/tester/test_356_b06_card_center.py b/resources/tester/test_356_b06_card_center.py new file mode 100644 index 000000000..4f7fd6684 --- /dev/null +++ b/resources/tester/test_356_b06_card_center.py @@ -0,0 +1,19 @@ +"""356 B06 횡단 카드 — 키 강조 · 중심점 좌우(요구 235-17 · 18). + +못박는 것 + - 356-2 카드 초점 없음 — 마우스로 고른 뒤 키를 눌러도 초점 테두리(다른 색) 안 뜸 · ▲▼ 계획고는 창 듣개. +""" + +from __future__ import annotations + +from pathlib import Path + +ROOT = Path(__file__).resolve().parents[2] +B06 = ROOT / "B06_Section" + + +def test_카드_초점_없음(): + view = (B06 / "B06_Section_UI_Cross_View.ts").read_text(encoding="utf-8") + assert "card.tabIndex" not in view + assert 'card.addEventListener("keydown"' not in view + assert 'card.addEventListener("click", () => onSelect(section.station_id));' in view