-
Notifications
You must be signed in to change notification settings - Fork 14
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
Conversation
|
||
### useAccordion | ||
|
||
The `useAccordion` hook manages toggle state and required accessibility | ||
attributes for a group of sections. | ||
|
||
```jsx static |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beginning to leverage tailwind 😉
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
yarn start
)analyzed via axe and evaluated using VoiceOverincludes new unit teststested in Chrome, Firefox, Safari, Edge, and IE11