diff --git a/src/features/tech-log/presentation/styles/globals.css b/src/features/tech-log/presentation/styles/globals.css index 9f3c436..f98484f 100644 --- a/src/features/tech-log/presentation/styles/globals.css +++ b/src/features/tech-log/presentation/styles/globals.css @@ -83,6 +83,22 @@ a { outline-offset: 4px; } +/* + 라우트가 바뀌면 `page-header.tsx` 가 제목에 초점을 준다 — 스크린리더가 새 화면의 이름부터 + 읽게 하려는 것이다. 그 제목은 `tabindex="-1"` 이라 키보드로는 닿을 수 없으므로, 링은 + 누를 수 있다는 뜻이 되어 거짓말을 한다. 실제로 로그인 화면에서 제목이 파란 사각형에 + 갇혀 나왔다. + + 초점 자체는 그대로 준다 — 없애면 보조기술이 새 화면의 이름을 놓친다. 보이는 표시만 뺀다. + + `skeleton` 의 `theme.css` 에 같은 규칙이 있지만 그 파일은 이 앱이 import 하지 않는다. + 적용되는 자리는 여기다. +*/ +[data-route-heading]:focus, +[data-route-heading]:focus-visible { + outline: none; +} + .site-frame { /* Flex column with the footer pushed down by `margin-top: auto` instead of sitting wherever the flow leaves it. The route chunk loads after first @@ -154,16 +170,6 @@ a { line-height: 1.08; } -/* 라우트 이동 때 제목에 초점을 준다(page-header.tsx). 그 표시가 제목을 상자로 두르면 안 된다. */ -.auth-gate .page-header h1:focus { - outline: none; -} - -.auth-gate .page-header h1:focus-visible { - outline: 2px solid var(--signal); - outline-offset: 6px; -} - .auth-gate .page-header__description { max-width: 620px; margin: 22px 0 0;