Focus ring tokens
| Token | Value | intent |
|---|---|---|
--focus-ring-web-color | #4d65ff | focus.ring |
--focus-ring-web-width | 2px | |
--focus-ring-web-offset | 2px | |
--input-focus-ring-width | var(--focus-ring-width) | |
--focus-ring-width | 3px | |
--focus-ring-offset-width | 2px | |
--focus-ring-color | var(--color-brand-500)dark var(--color-brand-300) |
Global contract
kit/rules/a11y-contract.jsonv0.5.0 · Original · KO · not translated
| utilities | .ds-sr-only, .ds-skip-link |
|---|---|
| reducedMotion | tokens/motion.css에서 전역 처리 — 컴포넌트에서 재구현 금지 |
focusRing
일반 인터랙티브 요소는 context별 data-ds-focus 링을 사용한다. Product Input/Select/Textarea는 glow 예외이며 정상/오류 모두 식별 가능한 focus를 유지한다. 중복 outline을 추가하지 않는다.
| attribute | data-ds-focus |
|---|---|
| width | 3px |
| offset | 2px |
| color | --focus-ring-color |
| dark | --color-brand-300 |
contextOverrides
| website |
|
|---|
componentExceptions
| product | Input, Select, Textarea |
|---|---|
| width | --input-focus-ring-width (aliases --focus-ring-width) |
| normalColor | --ring |
| invalidColor | --destructive / 0.3 |
hitTarget
| min | --hit-target-min |
|---|---|
| comfortable | --hit-target-comfortable |
| coarsePointerEnforced | True |
focusRingWeb
하위호환 별칭이다. 신규 소비자는 aliasOf 대상만 읽는다. 값은 중복 보관하지 않는다.
| deprecated | True |
|---|---|
| aliasOf | global.focusRing.contextOverrides.website |
linkName
| rule | 링크는 접근 가능한 이름을 가진다. 텍스트가 없으면 aria-label을 단다 |
|---|---|
| antipattern | <a href=…><img alt=""></a> — 스크린리더가 '링크'로만 읽는다 |
| wcag | 2.4.4, 4.1.2 |
measured2026-08-21
a[href] 기준. a 전체는 4836
| unnamedLinks | 315 |
|---|---|
| of | 4798 |
| topCause |
|
|---|
| second |
|
|---|
headings
| rule | 히어로 헤딩은 h1. 페이지당 h1은 하나. 레벨을 건너뛰지 않는다 |
|---|---|
| wcag | 1.3.1 |
measured2026-08-21
| pagesMissingH1 | 6 |
|---|---|
| cause | section-solution-hero-v1이 h2를 씀 |
| pagesMultipleH1 | 9 |
| pagesWithLevelSkips | 31 |
| of | 52 |
Per-component contracts
components in a11y-contract.json. Names link to each component's accessibility doc.
| Component | keys | aria | notes |
|---|---|---|---|
| Button | Enter, Space | aria-disabled | type="button" 기본 |
| IconButton | — | aria-label(필수), aria-disabled | |
| Checkbox | Space, Enter | role=checkbox, aria-checked(true|false|mixed), aria-labelledby, aria-disabled | |
| Switch | Space, Enter | role=switch, aria-checked, aria-labelledby | |
| RadioGroup | ArrowUp, ArrowDown, ArrowLeft, ArrowRight, Space | role=radiogroup, role=radio, aria-checked | roving tabindex — 선택된 항목만 탭 순서에 있다 |
| Tabs | ArrowLeft, ArrowRight, Home, End | role=tablist, role=tab, aria-selected, aria-controls, aria-orientation | roving tabindex |
| Select | — | aria-invalid | native select — 키보드는 브라우저 기본 |
| Input | — | aria-invalid | |
| Textarea | — | aria-invalid, aria-describedby(counter) | 카운터는 aria-live=polite |
| Dropdown | ArrowDown, ArrowUp, Home, End, Enter, Escape, Tab | aria-haspopup=menu, aria-expanded, role=menu, role=menuitem, role=separator | |
| Modal | Tab(trap), Shift+Tab, Escape | role=dialog, aria-modal, aria-labelledby, aria-describedby | 포커스를 오프너로 복원, body 스크롤 잠금 |
| Toast | — | role=status, role=alert(error), aria-live | hover/focus 시 자동 닫힘 정지 |
| Tooltip | Escape | role=tooltip, aria-describedby | 포커스로도 열린다. 필수 정보를 툴팁에만 두지 않는다 |
| Table | — | th scope=col, th scope=row, caption | |
| Nav | — | aria-label, aria-current=page | |
| Sidebar | — | aria-label, aria-current=page | |
| Banner | — | role=status|alert, aria-live | 장식 아이콘 aria-hidden |
| BarChart | — | role=img, aria-label(요약) | .ds-sr-only 표로 같은 수치 노출 |
| Sparkline | — | role=img, aria-label(추이 요약) | |
| ProgressBar | — | role=progressbar, aria-valuenow, aria-valuemin, aria-valuemax, aria-valuetext | |
| Stat | — | — | delta 방향을 .ds-sr-only 텍스트로 말한다 — 화살표 색만으로 전달하지 않는다 |
| SocialLinkRow | Tab | aria-label (링크마다 서비스명) | 아이콘 이미지는 alt="" 장식으로 두고 이름은 링크에 단다. Footer V2가 이 결함을 갖고 있다 |
Sources
Built from the Lift 1.2.3 sources at build time. The token files are the reference for values.