Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DSD-1614: Upgrading to Storybook v7.5.1 #1449

Merged
merged 4 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading