From f258408becb5d9566e7281dcc477adc3911d0cd8 Mon Sep 17 00:00:00 2001 From: Aditya Kumar Gupta Date: Wed, 24 Jun 2026 15:26:01 +0530 Subject: [PATCH] chore(html-reporter): use button elements for tabs --- packages/html-reporter/src/tabbedPane.css | 9 +++++++++ packages/html-reporter/src/tabbedPane.tsx | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/html-reporter/src/tabbedPane.css b/packages/html-reporter/src/tabbedPane.css index 042ab9f7608d5..d063719c3912b 100644 --- a/packages/html-reporter/src/tabbedPane.css +++ b/packages/html-reporter/src/tabbedPane.css @@ -48,11 +48,20 @@ align-items: center; justify-content: center; user-select: none; + background: none; + border: none; border-bottom: 2px solid transparent; + color: inherit; + font: inherit; outline: none; height: 100%; } +.tabbed-pane-tab-element:focus-visible { + outline: 1px solid var(--color-accent-fg); + outline-offset: -1px; +} + .tabbed-pane-tab-label { max-width: 250px; white-space: pre; diff --git a/packages/html-reporter/src/tabbedPane.tsx b/packages/html-reporter/src/tabbedPane.tsx index a1e533348b873..55d8f51955f08 100644 --- a/packages/html-reporter/src/tabbedPane.tsx +++ b/packages/html-reporter/src/tabbedPane.tsx @@ -37,14 +37,14 @@ export const TabbedPane: React.FunctionComponent<{
{ tabs.map(tab => ( -
setSelectedTab(tab.id)} id={`${idPrefix}-${tab.id}`} key={tab.id} role='tab' aria-selected={selectedTab === tab.id}>
{tab.title}
-
+ )) }