From 3a40a3cdc64a847b548d7495f08c7692c54efe7d Mon Sep 17 00:00:00 2001 From: Gabi Podolnikova Date: Thu, 15 Oct 2026 11:43:40 +0200 Subject: [PATCH 1/2] fix(Tabs): support custom link components Assisted-by: OpenCode (GPT-6.1) --- .../react-core/src/components/Tabs/Tab.tsx | 15 ++- .../src/components/Tabs/TabButton.tsx | 9 +- .../react-core/src/components/Tabs/Tabs.tsx | 11 +- .../src/components/Tabs/TabsContext.ts | 3 +- .../Tabs/__tests__/TabButton.test.tsx | 27 ++++- .../__tests__/TabsCustomComponent.test.tsx | 113 ++++++++++++++++++ .../src/components/Tabs/examples/Tabs.md | 39 +++++- .../Tabs/examples/TabsCustomComponent.tsx | 57 +++++++++ .../cypress/integration/tabsrouter.spec.ts | 93 ++++++++++++++ .../demo-app-ts/src/Demos.ts | 5 + .../demos/TabsDemo/TabsRouterDemo.tsx | 55 +++++++++ .../demo-app-ts/src/components/demos/index.ts | 1 + 12 files changed, 412 insertions(+), 16 deletions(-) create mode 100644 packages/react-core/src/components/Tabs/__tests__/TabsCustomComponent.test.tsx create mode 100644 packages/react-core/src/components/Tabs/examples/TabsCustomComponent.tsx create mode 100644 packages/react-integration/cypress/integration/tabsrouter.spec.ts create mode 100644 packages/react-integration/demo-app-ts/src/components/demos/TabsDemo/TabsRouterDemo.tsx diff --git a/packages/react-core/src/components/Tabs/Tab.tsx b/packages/react-core/src/components/Tabs/Tab.tsx index a24b405ed29..f278171b276 100644 --- a/packages/react-core/src/components/Tabs/Tab.tsx +++ b/packages/react-core/src/components/Tabs/Tab.tsx @@ -14,8 +14,10 @@ export interface TabProps children?: React.ReactNode; /** additional classes added to the Tab */ className?: string; - /** URL associated with the Tab. A Tab with an href will render as an instead of a