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

Implement initial useDisclosure hook #8819

Closed
Tracked by #8870
joshblack opened this issue Jun 1, 2021 · 0 comments · Fixed by #9006
Closed
Tracked by #8870

Implement initial useDisclosure hook #8819

joshblack opened this issue Jun 1, 2021 · 0 comments · Fixed by #9006
Labels
package: react carbon-components-react

Comments

@joshblack
Copy link
Contributor

As part of our work on disclosure, we would like to start out by building a useDisclosure hook that encapsulates the disclosure design pattern from WAI-ARIA.

This hook should:

  • Return the props necessary for the button and content parts of a disclosure pattern
  • Should be used in an unstable_Disclosure story as an example
  • Include tests to verify that the behavior matches the keyboard interaction and WAI-ARIA Roles/States/Properties required by the pattern
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: react carbon-components-react
Projects
None yet
1 participant