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

chore(accordion): refactor storybook #420

Merged
merged 9 commits into from
Feb 22, 2022
Merged

chore(accordion): refactor storybook #420

merged 9 commits into from
Feb 22, 2022

Conversation

jzempel
Copy link
Member

@jzempel jzempel commented Feb 22, 2022

Description

This is a follow-on from #418 and begins to bring this repo in line with zendeskgarden/react-components#1265. This PR is limited to the accordion package and also brings the .template up to date with the refactor. Subsequent PRs will follow to replace individual package *.stories.tsx files with the updated MDX demo structure.

Checklist

  • 🌐 Storybook demo is up-to-date (yarn start)
  • analyzed via axe and evaluated using VoiceOver
  • 💂‍♂️ includes new unit tests
  • 📝 tested in Chrome, Firefox, Safari, Edge, and IE11

@jzempel jzempel requested a review from a team as a code owner February 22, 2022 14:53

### useAccordion

The `useAccordion` hook manages toggle state and required accessibility
attributes for a group of sections.

```jsx static
Copy link
Member Author

Choose a reason for hiding this comment

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

These tags are leftover from styleguidist usage and prevent proper codeblock display in storybook.

</Story>
</Canvas>

## Controlled
Copy link
Member Author

Choose a reason for hiding this comment

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

Where applicable, stories will be enhanced during refactor to demonstrate both controlled and uncontrolled usage.

tabIndex: null,
disabled
})}
className="text-left w-full"
Copy link
Member Author

Choose a reason for hiding this comment

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

Beginning to leverage tailwind 😉

@coveralls
Copy link

coveralls commented Feb 22, 2022

Coverage Status

Coverage remained the same at 95.967% when pulling 01ba62f on jzempel/accordion-demo into 559da4b on main.

@jzempel jzempel changed the title chore(accordions): refactor storybook chore(accordion): refactor storybook Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants