diff --git a/packages/ui/src/components/HeaderPage/HeaderPage.stories.tsx b/packages/ui/src/components/HeaderPage/HeaderPage.stories.tsx
index c4849ddc20..c3c2b59ae1 100644
--- a/packages/ui/src/components/HeaderPage/HeaderPage.stories.tsx
+++ b/packages/ui/src/components/HeaderPage/HeaderPage.stories.tsx
@@ -44,22 +44,27 @@ const tabs: HeaderTab[] = [
{
id: 'overview',
label: 'Overview',
+ href: '/overview',
},
{
id: 'checks',
label: 'Checks',
+ href: '/checks',
},
{
id: 'tracks',
label: 'Tracks',
+ href: '/tracks',
},
{
id: 'campaigns',
label: 'Campaigns',
+ href: '/campaigns',
},
{
id: 'integrations',
label: 'Integrations',
+ href: '/integrations',
},
];
@@ -89,10 +94,19 @@ const withRouter = (Story: StoryFn) => (
);
+// White background decorator for stories
+const withWhiteBackground = (Story: StoryFn) => (
+
+
+
+);
+
// Extract layout decorator as a reusable constant
const layoutDecorator = [
(Story: StoryFn) => (
- <>
+
),
];
@@ -129,6 +143,7 @@ export const Default: Story = {
args: {
title: 'Page Title',
},
+ decorators: [withWhiteBackground],
};
export const WithTabs: Story = {
@@ -136,11 +151,11 @@ export const WithTabs: Story = {
...Default.args,
tabs,
},
- decorators: [withRouter],
+ decorators: [withRouter, withWhiteBackground],
};
export const WithCustomActions: Story = {
- decorators: [withRouter],
+ decorators: [withRouter, withWhiteBackground],
render: () => (
(
(
);
+// White background decorator for stories
+const withWhiteBackground = (Story: StoryFn) => (
+
+
+
+);
+
export const Default: Story = {
args: {
children: '',
},
- decorators: [withRouter],
+ decorators: [withRouter, withWhiteBackground],
render: () => (
- Tab 1
- Tab 2
- Tab 3 With long title
+
+ Tab 1
+
+
+ Tab 2
+
+
+ Tab 3 With long title
+
),
@@ -54,7 +69,7 @@ export const WithTabPanels: Story = {
args: {
children: '',
},
- decorators: [withRouter],
+ decorators: [withRouter, withWhiteBackground],
render: () => (
@@ -79,6 +94,7 @@ export const WithMockedURLTab2: Story = {
args: {
children: '',
},
+ decorators: [withWhiteBackground],
render: () => (
@@ -111,6 +127,7 @@ export const WithMockedURLTab3: Story = {
args: {
children: '',
},
+ decorators: [withWhiteBackground],
render: () => (
@@ -143,6 +160,7 @@ export const WithMockedURLNoMatch: Story = {
args: {
children: '',
},
+ decorators: [withWhiteBackground],
render: () => (
@@ -181,6 +199,7 @@ export const ExactMatchingDefault: Story = {
args: {
children: '',
},
+ decorators: [withWhiteBackground],
render: () => (
@@ -217,6 +236,7 @@ export const PrefixMatchingForNestedRoutes: Story = {
args: {
children: '',
},
+ decorators: [withWhiteBackground],
render: () => (
@@ -257,6 +277,7 @@ export const PrefixMatchingDeepNesting: Story = {
args: {
children: '',
},
+ decorators: [withWhiteBackground],
render: () => (
@@ -292,6 +313,7 @@ export const MixedMatchingStrategies: Story = {
args: {
children: '',
},
+ decorators: [withWhiteBackground],
render: () => (
@@ -343,6 +365,7 @@ export const PrefixMatchingEdgeCases: Story = {
args: {
children: '',
},
+ decorators: [withWhiteBackground],
render: () => (
@@ -385,6 +408,7 @@ export const PrefixMatchingWithSlash: Story = {
args: {
children: '',
},
+ decorators: [withWhiteBackground],
render: () => (
@@ -426,6 +450,7 @@ export const RootPathMatching: Story = {
args: {
children: '',
},
+ decorators: [withWhiteBackground],
render: () => (
@@ -460,6 +485,7 @@ export const AutoSelectionOfTabs: Story = {
args: {
children: '',
},
+ decorators: [withWhiteBackground],
render: () => (