diff --git a/.changeset/ninety-rice-repair.md b/.changeset/ninety-rice-repair.md new file mode 100644 index 00000000..725addc6 --- /dev/null +++ b/.changeset/ninety-rice-repair.md @@ -0,0 +1,5 @@ +--- +"@cambly/syntax-core": minor +--- + +IconButton: make onClick required & fix modal close issue diff --git a/packages/syntax-core/src/Modal/Modal.tsx b/packages/syntax-core/src/Modal/Modal.tsx index ce30db69..cbe44055 100644 --- a/packages/syntax-core/src/Modal/Modal.tsx +++ b/packages/syntax-core/src/Modal/Modal.tsx @@ -215,6 +215,7 @@ export default function Modal({ accessibilityLabel={accessibilityCloseLabel} color={image ? "primary" : "tertiary"} on={image ? "darkBackground" : "lightBackground"} + onClick={onDismiss} size="sm" icon={XIconCambio} />