Accessibility
CodeBlock from @prepared911/ui/code-block.figure named by label. The code inside is real text in pre > code, so a screen reader reads it, a reader can select it, and find-in-page matches it. Highlighting changes only color: the text is the same before and after.label (role="region"), so a keyboard user can reach and scroll it. A block that fits is not focusable, so it adds no tab stop.copyLabel, with the same text as its tooltip. After a copy its name becomes copiedLabel, or copyErrorLabel when the clipboard refused, and a polite live region announces the new name. It does not submit a surrounding form.code element, so it is read as code and exempt from translation.index.browser.test.tsx runs axe over TSX, JSON, diff, Markdown and shell). Under forced-colors: active every tone is the system text color and links are the system link color. The block has no motion of its own; the copy control's icon swap collapses under reduced motion.pre is translate="no" and the language caption is a Text identifier, so a browser translator leaves source code and the language id as written (ADR 0019 §7). The copy control and its tooltip are copy and stay translatable.