Skip to content

Commit

Permalink
Merge branch 'release' into gh-pages
Browse files Browse the repository at this point in the history
* release:
  Prep for Release v2.1.1
  2.1.1
  CHANGELOG
  package-lock
  formatting cleanup
  updating to Storybook 7.5.1
  prettier cleanup
  minor adjustments impacting campaign variant
  More updates per Clare clarification
  fixed background colors not rendering properly in dark mode
  Fixes tests
  Fixes typo
  Updates per Clare feedback
  deprecated secondary and fiftyFifty variants for Hero
  Updates snapshots again after npm i
  Updates CHANGELOG
  Adds aria-label to input for DatePicker
  better aria attributes for Heading overline
  better a11y docs
  correct tabindex for FeedbackBox and NewsletterSignup
  • Loading branch information
EdwinGuzman committed Oct 30, 2023
2 parents 8281f70 + 24125ed commit f2b81e4
Show file tree
Hide file tree
Showing 34 changed files with 13,361 additions and 10,123 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;
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,31 @@ Currently, this repo is in Prerelease. When it is released, this project will ad

## Prerelease

## 2.1.1 (October 26, 2023)

### Adds

- Adds a changelog to the story pages for the `Heading` component.

### Updates

- 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

- Fixes a bug in the `Hero` component where custom background colors were not rendering properly in dark mode for the `"campaign"` and `"tertiary"` variants.

### Deprecates

- Deprecates the `"secondary"` and `"fiftyFifty"` variants of the `Hero` component.

## 2.1.0 (October 18, 2023)

### Adds

- Adds the `ComponentChangelogTable` component.
- Adds a changelog to the story pages for the `DatePicker`, `FeedbackBox`, `Hero`, `Slider`, and `TextInput` components.
- Adds the `FeaturedContent` component.
Expand Down
Loading

0 comments on commit f2b81e4

Please sign in to comment.