-
Notifications
You must be signed in to change notification settings - Fork 645
Closed
Description
This is a tracking issue for another refactor of the Details component.
Goals
- Simplify the API of
Details. Currently there are a few different patterns that consumers ofDetailscan use. Would it be possible to offer only one pattern that achieves all needed functionality? - Add an
overlayprop toDetailswhich closes the menu when a click event outside of it is fired.
API / Test cases
- Provides a customizable toggle function
- Calls toggle function when child component triggers it
- Provides the
openstate to child components - Renders content when
<summary>is clicked - Has access to default theme and system props
- Sets reset styles on wrapper component
- Respects
overlayprop by adding overlay styles whenopenstate is true
Metadata
Metadata
Assignees
Labels
No labels