{
  "componentId": "icon",
  "componentName": "Icon",
  "lastReviewed": "2026-05-03",
  "keyboardWalk": [
    {
      "keys": "Tab (decorative icon)",
      "expected": "Decorative icons are not in the tab order. Tab moves through the host element; the icon is presentational and does not receive focus."
    },
    {
      "keys": "Tab (icon hosted inside a focusable element)",
      "expected": "Focus enters the host (button, link, list-item). The icon does not separately participate; the host carries the focus ring."
    }
  ],
  "announcements": [
    {
      "trigger": "SR encounters a decorative icon",
      "expected": "Silent. `aria-hidden=\"true\"` excludes the icon from the accessibility tree; the host's accessible name reads without icon-name interference."
    },
    {
      "trigger": "SR encounters a meaningful icon",
      "expected": "SR announces the `aria-label` value, prefixed by the role announcement (\"graphic, Open menu\" or \"image, Verified\"). The label describes the icon's meaning, not the glyph shape."
    }
  ],
  "axeRules": [
    "svg-img-alt",
    "role-img-alt",
    "aria-allowed-attr",
    "aria-hidden-focus",
    "color-contrast"
  ],
  "_about": "Per-component a11y-acceptance data shaped for direct ingestion into Playwright + @axe-core/playwright or Jest + jest-axe.\n\nSuggested wiring:\n- axeRules → pass to AxeBuilder.options({ runOnly: { type: \"rule\", values: axeRules } }) so the run targets only the rules the canon has pinned for this component (other rules can run in your global pass).\n- keyboardWalk → iterate the entries; each `keys` is a human-readable sequence (e.g. \"Tab → Tab → Esc\"). Translate to page.keyboard.press calls and assert `expected` against the result (focused element, aria-state, visible text, etc.).\n- announcements → assert text content of any aria-live region or capture the accessibility tree at the trigger moment and match against `expected`.\n\nEmpty sub-arrays mean the canon does not yet pin behaviour for that axis on this component, not that none is required."
}