Skip to content

Commit

Permalink
docs(ModalWrapper): expose focusTrap knob (#4316)
Browse files Browse the repository at this point in the history
* docs(ModalWrapper): expose `focusTrap` knob

* docs(Modal): fix typo
  • Loading branch information
emyarod authored and abbeyhrt committed Oct 28, 2019
1 parent 09ce831 commit 8bf374f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/components/Modal/Modal-story.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const props = () => ({
'Enter key to submit (shouldSubmitOnEnter)',
false
),
focusTrap: boolean('Trap focus (focusTrap', false),
focusTrap: boolean('Trap focus (focusTrap)', false),
modalHeading: text('Modal heading (modalHeading)', 'Modal heading'),
modalLabel: text('Optional label (modalLabel)', 'Label'),
modalAriaLabel: text(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ const props = () => {
'Close after submit (shouldCloseAfterSubmit)',
true
),
focusTrap: boolean('Trap focus (focusTrap)', false),
onBlur: action('onBlur'),
onClick: action('onClick'),
onFocus: action('onFocus'),
Expand Down

0 comments on commit 8bf374f

Please sign in to comment.