Skip to content

Scheduling infrastructure for absolutely everyone.

fix: prevent external CSS from breaking Cal.com embed (#22778)

Sahitya Chandra5463dc261cd6
diff --git a/packages/embeds/embed-core/src/embed.css b/packages/embeds/embed-core/src/embed.css
index 0792fdb415c..741b1d19c62 100644
--- a/packages/embeds/embed-core/src/embed.css
+++ b/packages/embeds/embed-core/src/embed.css
@@ -6,4 +6,9 @@
min-height: 300px;
margin: 0 auto;
width: 100%;
+ /**
+ * Following properties are added to ensure that the embedding page isn't able to affect these properties
+ */
+ display: block !important; /* A website made all iframes' display flex breaking the embed */
+ color-scheme: unset !important; /* A website had explicitly set color-scheme to something for all iframes */
}