Skip to content

Commit

Permalink
Merge pull request #1449 from NYPL/storybook-7.5.1
Browse files Browse the repository at this point in the history
DSD-1614: Upgrading to Storybook v7.5.1
  • Loading branch information
bigfishdesign13 authored Oct 26, 2023
2 parents e9f3714 + 395d716 commit fc1e77b
Show file tree
Hide file tree
Showing 4 changed files with 12,892 additions and 9,941 deletions.
9 changes: 9 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const config: StorybookConfig = {
},
"@storybook/addon-jest",
],

// This gets added automatically through react-vite,
// but leaving it here just to point it out.
// core: {
Expand All @@ -34,16 +35,19 @@ const config: StorybookConfig = {
name: "@storybook/react-vite",
options: {},
},

refs: {
"@chakra-ui/react": { disable: true },
},

stories: [
"../src/docs/Welcome.mdx",
"../src/docs/Chakra.mdx",
"../src/components/**/*.mdx",
"../src/components/**/*.stories.tsx",
"../src/hooks/*.mdx",
],

typescript: {
// Type-check stories during Storybook build.
check: true,
Expand All @@ -62,6 +66,7 @@ const config: StorybookConfig = {
},
},
},

async viteFinal(config, { configType }) {
return mergeConfig(config, {
// Customize the Vite config here:
Expand All @@ -73,6 +78,10 @@ const config: StorybookConfig = {
},
});
},

docs: {
autodocs: true,
},
};

export default config;
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Currently, this repo is in Prerelease. When it is released, this project will ad
- Updates the `Heading` component to set the `aria-roledescription` value as `"subtitle"` (a more familiar and recognizable value) for the `overline` element.
- Updates the `FeedbackBox` and `NewsletterSignup` components to set the `tabindex` on the internal elements to `"-1"`.
- Updates `DatePicker`'s `TextInput` to always have an `aria-label` attribute that tells screen reader users how to access the calendar.
- Updates Storybook to `v7.5.1`.

### Fixes

Expand Down
Loading

1 comment on commit fc1e77b

@vercel
Copy link

@vercel vercel bot commented on fc1e77b Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.