Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Ken <[email protected]>
  • Loading branch information
HalvorHaugan and KenAJoh authored Dec 19, 2023
1 parent 377e9be commit 0460cd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions @navikt/core/react/src/modal/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export interface ModalProps
*/
onClose?: React.ReactEventHandler<HTMLDialogElement>;
/**
* Called when the user tries to close the modal by one of the built-in ways.
* Use this if you want to ask the user for confirmation before closing.
* Called when the user tries to close the modal by one of the built-in methods.
* Used if you want to ask the user for confirmation before closing.
* @warning Will not always be called when pressing Esc. Refer to the JSDoc for `onCancel` for more info.
* @returns Whether to close the modal
*/
Expand Down

0 comments on commit 0460cd2

Please sign in to comment.