Skip to content

Commit 54231b0

Browse files
committed
fix(embed): default iframe color-scheme to light when no theme set
Changes the fallback from 'light dark' to 'light' to match the inner document's default behavior, which always defaults to light when no theme is specified.
1 parent 3a20bbe commit 54231b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/apps/remark42/app/utils/create-iframe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function createIframe({ __colors__, styles, ...params }: Params) {
2020
padding: 0,
2121
margin: 0,
2222
overflow: 'hidden',
23-
colorScheme: params.theme === 'dark' ? 'dark' : params.theme === 'light' ? 'light' : 'light dark',
23+
colorScheme: params.theme === 'dark' ? 'dark' : 'light',
2424
...styles,
2525
});
2626

0 commit comments

Comments
 (0)