Skip to content

Commit

Permalink
Merge f01a05b into b9b0324
Browse files Browse the repository at this point in the history
  • Loading branch information
akashyeole authored Oct 2, 2024
2 parents b9b0324 + f01a05b commit 6df06fe
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions packages/components/src/components/tabs/tabs.stories.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
import { action } from '@storybook/addon-actions';

const tabHeaders = [
{
header: 'tab a',
disabled: false,
},
{
header: 'tab b',
disabled: true,
},
{
header: 'tab c',
disabled: false,
},
];

export default {
title: 'Components/Tabs',
tags: ['autodocs'],
Expand Down Expand Up @@ -64,8 +49,10 @@ const Template = args => {

for (let i = 0; i < args.amountOfTabs; i++) {
const tabContent = document.createElement('ifx-tab');
tabContent.setAttribute('header', tabHeaders[i].header);
tabContent.setAttribute('disabled', tabHeaders[i].disabled.toString());
tabContent.setAttribute('header', `tab ${i+1}`);
if(i == 1) {
tabContent.setAttribute('disabled', 'true');
}
if(args.icon){
tabContent.setAttribute('icon', 'c-check-16');
tabContent.setAttribute('icon-position', args.iconPosition);
Expand Down

0 comments on commit 6df06fe

Please sign in to comment.