Skip to content

Commit 5463dc2

Browse files
sahitya-chandraanikdhabalhariombalhara
authored
fix: prevent external CSS from breaking Cal.com embed (calcom#22778)
* fix: added block display to .cal-embed * fixed the iframe color-scheme to unset and bg transparent * removed forced CSS * changes reverted from iframe * Add comments and remove background transparent as it is still not needed --------- Co-authored-by: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com> Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>
1 parent 55df0e3 commit 5463dc2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

packages/embeds/embed-core/src/embed.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,9 @@
66
min-height: 300px;
77
margin: 0 auto;
88
width: 100%;
9+
/**
10+
* Following properties are added to ensure that the embedding page isn't able to affect these properties
11+
*/
12+
display: block !important; /* A website made all iframes' display flex breaking the embed */
13+
color-scheme: unset !important; /* A website had explicitly set color-scheme to something for all iframes */
914
}

0 commit comments

Comments
 (0)