-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(component): restrict actions and header from modals (#209)
BREAKING CHANGE: Modal is now restricted and uses a `header` and `actions` props instead. Old: ```jsx <Modal isOpen={isOpen}> <Modal.Header>Modal Title</Modal.Header> <Modal.Body> <Text>Body content.</Text> </Modal.Body> <Modal.Actions> <Button variant="subtle" onClick={() => setIsOpen(false)}> Cancel </Button> </Modal.Actions> </Modal> ``` New: ```jsx <Modal actions={[{text: 'Cancel', variant: 'subtle', onClick: () => setIsOpen(false)}]} isOpen={isOpen} header="Modal Title"> <Text>Body content.</Text> </Modal> ```
- Loading branch information
Showing
7 changed files
with
403 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.