diff --git a/.pi/skills/yellowjacket-dev/SKILL.md b/.pi/skills/yellowjacket-dev/SKILL.md index ed30b03..b0ad847 100644 --- a/.pi/skills/yellowjacket-dev/SKILL.md +++ b/.pi/skills/yellowjacket-dev/SKILL.md @@ -18,7 +18,7 @@ here has disappeared. ## Read this part before you fail -Fourteen things cost a cycle each the first time. They are here, not in a +Fifteen things cost a cycle each the first time. They are here, not in a reference, because you need them *before* the failure, not after. - **Time out every binding call.** A bound Go method called with wrong @@ -54,6 +54,16 @@ reference, because you need them *before* the failure, not after. `label` to `aria-labelledby` — so a new dialog that forgets to call the helper from `updated()` is invisible to `getByRole('dialog', {name})`. +- **A name is computed on the element carrying the *role*, and Web + Awesome puts the role in its own shadow root.** `aria-label` on a + `` or a `` host never reaches the tree. Use the + component's own `label` (plus `styles/wa-slider-label.css.ts`, since + a slider's is visible) or `utils/name-dialog.ts`. And in the light + DOM, a `