From 1f1a10237f720d2303c8d6ec65a54cde33762ebe Mon Sep 17 00:00:00 2001 From: Thomas Kosiewski Date: Tue, 1 Sep 2026 11:54:08 +0000 Subject: [PATCH] fix(site/src): repair two stories broken by a11y-name drift The biome 2.5.10 autofix added an aria-label to the premium trial form's docs link, changing its accessible name out from under the Keyboard Navigation story's exact-name query, and the license banner's collapse trigger rendered its own button around Button (invalid HTML, two identically named buttons in the accessibility tree). Use asChild on the trigger and query the link by its aria-label. --- .../modules/dashboard/LicenseBanner/LicenseBannerView.tsx | 7 +++++-- .../PremiumPage/TrialRequestForm.stories.tsx | 5 ++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/site/src/modules/dashboard/LicenseBanner/LicenseBannerView.tsx b/site/src/modules/dashboard/LicenseBanner/LicenseBannerView.tsx index 39404bca9e8..165b4efc1ec 100644 --- a/site/src/modules/dashboard/LicenseBanner/LicenseBannerView.tsx +++ b/site/src/modules/dashboard/LicenseBanner/LicenseBannerView.tsx @@ -143,9 +143,12 @@ const ExpandableLicenseMessageList: React.FC<{ - + {/* asChild: the trigger must not render its own