-
Notifications
You must be signed in to change notification settings - Fork 920
Open
Labels
Type: BugConfirmed bugConfirmed bug
Description
Describe the Bug
No hsl color is supported in microsoft outlook, but react-email renders them correctly everywhere else.
react-email also does not show a compatibility warning, so it's very hard to notice if you do not use outlook yourself.
Example colors: "hsl(198, 65%, 45%)" or "hsla(240, 100%, 50%, 0.75)"
Link to the code that reproduces this issue
https://github.com/tlow92/react-email-hsl-colors
Direct link to specific change to the starter template:
tlow92/react-email-hsl-colors@bf954a8
To Reproduce
- Use following backgroundColor on any element "hsl(198, 65%, 45%)"
- Check in preview server -> Rendered correctly
- Use "Send" feature to send it to any email that can be accessed with Microsoft Outlook
- Background color is missing
Rendered in preview server:
Rendered in Microsoft Outlook
Expected Behavior
I would expect either one of the following
- Automatic conversion from hsl/hsla to a compatible color like rgb
- Show compatibility warning
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type: BugConfirmed bugConfirmed bug