React embed: fix modal close on click outside (#5181)

* fix: modal close on click outside

* fix: for sm viewport

* add: main class

Co-authored-by: root <root@pop-os.localdomain>
Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Harsh Singh
2022-10-31 07:57:09 +00:00
committed by GitHub
co-authored by root Hariom Balhara Peer Richelsen kodiakhq[bot]
parent ec9b3a4261
commit 5bb868d2c3
+1 -1
View File
@@ -297,7 +297,7 @@ export default function Success(props: SuccessProps) {
aria-hidden="true">
<div
className={classNames(
"inline-block transform overflow-hidden rounded-lg border sm:my-8 sm:max-w-xl",
"main inline-block transform overflow-hidden rounded-lg border sm:my-8 sm:max-w-xl",
isBackgroundTransparent ? "" : "dark:bg-darkgray-100 bg-white dark:border-neutral-700",
"px-8 pt-5 pb-4 text-left align-bottom transition-all sm:w-full sm:py-8 sm:align-middle"
)}