Skip to content

Commit

Permalink
Sort button story variants
Browse files Browse the repository at this point in the history
  • Loading branch information
narin committed Nov 21, 2023
1 parent 28fbeeb commit 6c03954
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions packages/components/src/components/Button/Button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const meta: Meta<ButtonProps> = {
docs: generateDocs({
name: 'Button',
docUrl:
'https://department-of-veterans-affairs.github.io/va-mobile-app/docs/Flagship%20design%20library/Components/Buttons%20and%20Links/VAButton/',
'https://department-of-veterans-affairs.github.io/va-mobile-app/design/Components/Buttons%20and%20links/Button',
}),
},
decorators: [
Expand All @@ -38,56 +38,56 @@ export default meta

type Story = StoryObj<ButtonProps>

export const Base: Story = {
storyName: 'Base',
export const _Primary: Story = {
storyName: 'Primary',
args: {
buttonType: ButtonVariants.Base,
label: 'Button text',
a11yLabel: 'Alternate a11y text',
a11yHint: 'Descriptive text about this Button',
},
}

export const BaseSecondary: Story = {
storyName: 'Base Secondary',
export const __Secondary: Story = {
storyName: 'Secondary',
args: {
buttonType: ButtonVariants.BaseSecondary,
buttonType: ButtonVariants.Secondary,
label: 'Button text',
a11yLabel: 'Alternate a11y text',
a11yHint: 'Descriptive text about this Button',
},
}

export const Destructive: Story = {
storyName: 'Destructive',
export const ___Base: Story = {
storyName: 'Base Primary',
args: {
buttonType: ButtonVariants.Destructive,
buttonType: ButtonVariants.Base,
label: 'Button text',
a11yLabel: 'Alternate a11y text',
a11yHint: 'Descriptive text about this Button',
},
}

export const Primary: Story = {
storyName: 'Primary',
export const ____BaseSecondary: Story = {
storyName: 'Base Secondary',
args: {
buttonType: ButtonVariants.BaseSecondary,
label: 'Button text',
a11yLabel: 'Alternate a11y text',
a11yHint: 'Descriptive text about this Button',
},
}

export const Secondary: Story = {
storyName: 'Secondary',
export const _____Destructive: Story = {
storyName: 'Destructive',
args: {
buttonType: ButtonVariants.Secondary,
buttonType: ButtonVariants.Destructive,
label: 'Button text',
a11yLabel: 'Alternate a11y text',
a11yHint: 'Descriptive text about this Button',
},
}

export const White: Story = {
export const ______White: Story = {
storyName: 'White',
args: {
buttonType: ButtonVariants.White,
Expand Down

0 comments on commit 6c03954

Please sign in to comment.