The theme switch was three labelled radios that wrapped the header onto a second line with long translations. It is three SVG buttons now, with search and menu sharing the same language: no resting outline, a filled chip for the active choice. Radios gave arrow-key roving for free, so the group reimplements it rather than losing it. The first chip colour put accent on accent and failed WCAG AA; the label carries full contrast instead. Mobile targets sit at 45px because a floor of exactly 44 rounds to 43.99997 in Firefox. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
13 lines
366 B
JSON
13 lines
366 B
JSON
{
|
|
"$schema": "https://schemas.wp.org/trunk/block.json",
|
|
"apiVersion": 3,
|
|
"name": "chrnx/header-tools",
|
|
"version": "0.2.0",
|
|
"title": "CHRNX Header Tools",
|
|
"category": "theme",
|
|
"description": "Display translated primary navigation and progressive site search.",
|
|
"textdomain": "chrnx",
|
|
"supports": { "html": false },
|
|
"render": "file:./render.php"
|
|
}
|