Skip to content

Commit

Permalink
force meta light only
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaieremia committed Aug 31, 2024
1 parent e5d6b04 commit e541825
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/email/event-email.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,19 @@ type IProps = {
event: IEvent
style?: {
backgroundColor: string
color: string
}
}

const imgStyle = {
filter: 'none !important',
}
const messages = translations.translations.en

const EventEmail = ({
host = defaultHost,
event,
name,
style = { backgroundColor: '#121212' },
style = { backgroundColor: '#121212', color: '#121212' },
unsubscribeToken,
}: IProps & WithUnsubscribeToken) => {
const t = createTranslator({
Expand All @@ -87,6 +90,7 @@ const EventEmail = ({
style={{
backgroundImage: `linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(${event.backgroundImage})`,
backgroundColor: style.backgroundColor,
color: style.color,
}}
>
<Container>
Expand Down
2 changes: 2 additions & 0 deletions src/email/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ export const GeneralEmail = ({
}
`}
</style>
<meta name="color-scheme" content="light only" />
<meta name="supported-color-schemes" content="light only" />
</Head>
<Preview>{title}</Preview>
{children}
Expand Down

0 comments on commit e541825

Please sign in to comment.