From 37f7ec6d69747f9e8ee5a14f76bdfafbf08a5209 Mon Sep 17 00:00:00 2001 From: Milan Raj Date: Tue, 22 Oct 2024 18:16:10 -0500 Subject: [PATCH] Apply suggestions from code review consistent tab indexing for stories --- .../storybook/src/nimble/anchor-tabs/anchor-tabs.stories.ts | 2 +- packages/storybook/src/nimble/tabs/tabs.stories.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/storybook/src/nimble/anchor-tabs/anchor-tabs.stories.ts b/packages/storybook/src/nimble/anchor-tabs/anchor-tabs.stories.ts index 2a240a68b4..5e62741591 100644 --- a/packages/storybook/src/nimble/anchor-tabs/anchor-tabs.stories.ts +++ b/packages/storybook/src/nimble/anchor-tabs/anchor-tabs.stories.ts @@ -57,7 +57,7 @@ const wideTabs = [ ] as const; const manyTabs: AnchorTabArgs[] = []; -for (let i = 0; i < 100; i++) { +for (let i = 1; i <= 100; i++) { manyTabs.push({ title: `Tab ${i}`, id: `${i}`, diff --git a/packages/storybook/src/nimble/tabs/tabs.stories.ts b/packages/storybook/src/nimble/tabs/tabs.stories.ts index 5424acd800..42caa39010 100644 --- a/packages/storybook/src/nimble/tabs/tabs.stories.ts +++ b/packages/storybook/src/nimble/tabs/tabs.stories.ts @@ -65,7 +65,7 @@ const wideTabs = [ ] as const; const manyTabs: TabArgs[] = []; -for (let i = 0; i < 100; i++) { +for (let i = 1; i <= 100; i++) { manyTabs.push({ title: `Tab ${i}`, id: `${i}`,