From 6117f60dff4ef7f49ca09d4c0facb3ab8de921aa Mon Sep 17 00:00:00 2001 From: Ruud Andriessen Date: Fri, 16 Oct 2026 13:44:48 +0200 Subject: [PATCH] fix(apollo-vertex): give docs example controls accessible names Docs examples rendered icon-only buttons, progress bars and inputs with no accessible name, which axe flags and which models the wrong usage. - button, button-group, tooltip: aria-label on icon-only buttons - progress: aria-label on each bar, including the usage snippet - input, input-group: aria-label on placeholder-only inputs and snippets - field: link FieldLabel to its control with htmlFor/id - form-wizard: the headless demo reused the main demo's field names, so both rendered duplicate ids and the second demo's labels pointed at the first demo's inputs; rename its first step group to "profile" - CommandInput: default aria-label from the new "search_input" locale key, overridable via props; registry item now ships vertex-translation --- .../content/docs/components/button-group.mdx | 10 ++++----- .../content/docs/components/button.mdx | 2 +- .../content/docs/components/field.mdx | 12 +++++----- .../components/form-wizard-headless-demo.tsx | 22 +++++++++---------- .../content/docs/components/input-group.mdx | 8 +++---- .../content/docs/components/input.mdx | 12 +++++----- .../content/docs/components/progress.mdx | 8 +++---- .../content/docs/components/tooltip.mdx | 2 +- packages/apollo-vertex/locales/en.json | 1 + packages/apollo-vertex/registry.json | 5 +++-- .../registry/command/command.tsx | 3 +++ 11 files changed, 45 insertions(+), 40 deletions(-) diff --git a/apps/apollo-vertex/content/docs/components/button-group.mdx b/apps/apollo-vertex/content/docs/components/button-group.mdx index 5748bb3136..8416317c3f 100644 --- a/apps/apollo-vertex/content/docs/components/button-group.mdx +++ b/apps/apollo-vertex/content/docs/components/button-group.mdx @@ -15,14 +15,14 @@ import { ChevronLeft, ChevronRight, Bold, Italic, Underline } from 'lucide-react - - + + - - - + + + diff --git a/apps/apollo-vertex/content/docs/components/button.mdx b/apps/apollo-vertex/content/docs/components/button.mdx index 6fa2b71446..cebb639881 100644 --- a/apps/apollo-vertex/content/docs/components/button.mdx +++ b/apps/apollo-vertex/content/docs/components/button.mdx @@ -23,7 +23,7 @@ import { Mail, Loader2, ChevronRight } from 'lucide-react' - + ## With Icon diff --git a/apps/apollo-vertex/content/docs/components/field.mdx b/apps/apollo-vertex/content/docs/components/field.mdx index 4e44730007..5252d59591 100644 --- a/apps/apollo-vertex/content/docs/components/field.mdx +++ b/apps/apollo-vertex/content/docs/components/field.mdx @@ -9,17 +9,17 @@ import { Textarea } from '@/registry/textarea/textarea' - Email + Email - + We'll never share your email. - Bio + Bio -