feat(a11y): aria-pressed on validera destinations + homepage filter group
- validera: delivery destination toggle buttons get aria-pressed + role=group + focus-visible ring - featured-products-section: filter buttons get aria-pressed + role=group with aria-label Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -67,10 +67,11 @@ export function FeaturedProductsSection() {
|
||||
<span className="text-muted-foreground">{t({ en: "Ready to ship.", sv: "Redo att leverera." })}</span>
|
||||
</h2>
|
||||
</div>
|
||||
<div className="flex flex-wrap gap-px bg-border">
|
||||
<div role="group" aria-label={t({ en: "Filter by type", sv: "Filtrera efter typ" })} className="flex flex-wrap gap-px bg-border">
|
||||
{FILTERS.map((f) => (
|
||||
<button
|
||||
key={f}
|
||||
aria-pressed={filter === f}
|
||||
onClick={() => setFilter(f)}
|
||||
className="bg-background px-4 py-2 font-mono text-[11px] uppercase tracking-[0.1em] transition-colors"
|
||||
style={{
|
||||
|
||||
Reference in New Issue
Block a user