{
  "id": "a11y-contract",
  "version": "0.5.0",
  "ssot": "tokens/a11y.css + guidelines/accessibility.html",
  "global": {
    "focusRing": {
      "attribute": "data-ds-focus",
      "width": "3px",
      "offset": "2px",
      "color": "--focus-ring-color",
      "dark": "--color-brand-300",
      "note": "일반 인터랙티브 요소는 context별 data-ds-focus 링을 사용한다. Product Input/Select/Textarea는 glow 예외이며 정상/오류 모두 식별 가능한 focus를 유지한다. 중복 outline을 추가하지 않는다.",
      "contextOverrides": {
        "website": {
          "ssot": "tokens/a11y.website.css + tokens/website.css Layer 4",
          "width": "2px",
          "offset": "2px",
          "color": "--focus-ring-web-color",
          "dark": "--colors--white",
          "basis": "2026-08-21 실측 — 52페이지 중 50페이지가 #4d65ff 2px 를 커스텀 코드로 얹고 있었고 변형 0건. 흰 배경 4.54:1 (1.4.11 통과)."
        }
      },
      "componentExceptions": {
        "product": [
          "Input",
          "Select",
          "Textarea"
        ],
        "width": "--input-focus-ring-width (aliases --focus-ring-width)",
        "normalColor": "--ring",
        "invalidColor": "--destructive / 0.3"
      }
    },
    "utilities": [
      ".ds-sr-only",
      ".ds-skip-link"
    ],
    "reducedMotion": "tokens/motion.css에서 전역 처리 — 컴포넌트에서 재구현 금지",
    "hitTarget": {
      "min": "--hit-target-min",
      "comfortable": "--hit-target-comfortable",
      "coarsePointerEnforced": true
    },
    "focusRingWeb": {
      "deprecated": true,
      "aliasOf": "global.focusRing.contextOverrides.website",
      "note": "하위호환 별칭이다. 신규 소비자는 aliasOf 대상만 읽는다. 값은 중복 보관하지 않는다."
    },
    "linkName": {
      "rule": "링크는 접근 가능한 이름을 가진다. 텍스트가 없으면 aria-label을 단다",
      "antipattern": "<a href=…><img alt=\"\"></a> — 스크린리더가 '링크'로만 읽는다",
      "wcag": [
        "2.4.4",
        "4.1.2"
      ],
      "measured2026-08-21": {
        "unnamedLinks": 315,
        "of": 4798,
        "topCause": {
          "class": "footer-social-link",
          "count": 200,
          "pages": 50,
          "component": "Footer V2"
        },
        "second": {
          "desc": "로고·인증배지 링크",
          "count": 51,
          "pages": 49
        },
        "note": "a[href] 기준. a 전체는 4836"
      }
    },
    "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
      }
    }
  },
  "components": {
    "Button": {
      "keys": [
        "Enter",
        "Space"
      ],
      "aria": [
        "aria-disabled"
      ],
      "notes": "type=\"button\" 기본"
    },
    "IconButton": {
      "aria": [
        "aria-label(필수)",
        "aria-disabled"
      ]
    },
    "Checkbox": {
      "keys": [
        "Space",
        "Enter"
      ],
      "aria": [
        "role=checkbox",
        "aria-checked(true|false|mixed)",
        "aria-labelledby",
        "aria-disabled"
      ]
    },
    "Switch": {
      "keys": [
        "Space",
        "Enter"
      ],
      "aria": [
        "role=switch",
        "aria-checked",
        "aria-labelledby"
      ]
    },
    "RadioGroup": {
      "keys": [
        "ArrowUp",
        "ArrowDown",
        "ArrowLeft",
        "ArrowRight",
        "Space"
      ],
      "aria": [
        "role=radiogroup",
        "role=radio",
        "aria-checked"
      ],
      "notes": "roving tabindex — 선택된 항목만 탭 순서에 있다"
    },
    "Tabs": {
      "keys": [
        "ArrowLeft",
        "ArrowRight",
        "Home",
        "End"
      ],
      "aria": [
        "role=tablist",
        "role=tab",
        "aria-selected",
        "aria-controls",
        "aria-orientation"
      ],
      "notes": "roving tabindex"
    },
    "Select": {
      "aria": [
        "aria-invalid"
      ],
      "notes": "native select — 키보드는 브라우저 기본"
    },
    "Input": {
      "aria": [
        "aria-invalid"
      ]
    },
    "Textarea": {
      "aria": [
        "aria-invalid",
        "aria-describedby(counter)"
      ],
      "notes": "카운터는 aria-live=polite"
    },
    "Dropdown": {
      "keys": [
        "ArrowDown",
        "ArrowUp",
        "Home",
        "End",
        "Enter",
        "Escape",
        "Tab"
      ],
      "aria": [
        "aria-haspopup=menu",
        "aria-expanded",
        "role=menu",
        "role=menuitem",
        "role=separator"
      ]
    },
    "Modal": {
      "keys": [
        "Tab(trap)",
        "Shift+Tab",
        "Escape"
      ],
      "aria": [
        "role=dialog",
        "aria-modal",
        "aria-labelledby",
        "aria-describedby"
      ],
      "notes": "포커스를 오프너로 복원, body 스크롤 잠금"
    },
    "Toast": {
      "aria": [
        "role=status",
        "role=alert(error)",
        "aria-live"
      ],
      "notes": "hover/focus 시 자동 닫힘 정지"
    },
    "Tooltip": {
      "keys": [
        "Escape"
      ],
      "aria": [
        "role=tooltip",
        "aria-describedby"
      ],
      "notes": "포커스로도 열린다. 필수 정보를 툴팁에만 두지 않는다"
    },
    "Table": {
      "aria": [
        "th scope=col",
        "th scope=row",
        "caption"
      ]
    },
    "Nav": {
      "aria": [
        "aria-label",
        "aria-current=page"
      ]
    },
    "Sidebar": {
      "aria": [
        "aria-label",
        "aria-current=page"
      ]
    },
    "Banner": {
      "aria": [
        "role=status|alert",
        "aria-live"
      ],
      "notes": "장식 아이콘 aria-hidden"
    },
    "BarChart": {
      "aria": [
        "role=img",
        "aria-label(요약)"
      ],
      "notes": ".ds-sr-only 표로 같은 수치 노출"
    },
    "Sparkline": {
      "aria": [
        "role=img",
        "aria-label(추이 요약)"
      ]
    },
    "ProgressBar": {
      "aria": [
        "role=progressbar",
        "aria-valuenow",
        "aria-valuemin",
        "aria-valuemax",
        "aria-valuetext"
      ]
    },
    "Stat": {
      "notes": "delta 방향을 .ds-sr-only 텍스트로 말한다 — 화살표 색만으로 전달하지 않는다"
    },
    "SocialLinkRow": {
      "keys": [
        "Tab"
      ],
      "aria": [
        "aria-label (링크마다 서비스명)"
      ],
      "notes": "아이콘 이미지는 alt=\"\" 장식으로 두고 이름은 링크에 단다. Footer V2가 이 결함을 갖고 있다"
    }
  }
}
