Skip to content

Commit

Permalink
fix: make it more clear what email block is focused in the composer
Browse files Browse the repository at this point in the history
  • Loading branch information
ajoensson committed Jan 19, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent d98aae2 commit def5143
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/features/emails/components/EmailEditor/EmailEditorFrontend.tsx
Original file line number Diff line number Diff line change
@@ -213,6 +213,22 @@ const EmailEditorFrontend: FC<EmailEditorFrontendProps> = ({
<Box
id="ClientOnlyEditor-container"
sx={{
'& .ce-block--selected .ce-block__content': {
// styling for highlighting the selected block
'&:before': { // We need the pseudo element to hold the border so that block's height does not change
border: "1px solid #9ed5ff",
borderRadius: 1,
bottom: 0,
content: '""',
left: 0,
pointerEvents: 'none', // We don't want the pseudo element to interfere with the user's interaction
position: 'absolute',
right: 0,
top: 0,
},
backgroundColor: '#e1f2ff',
borderRadius: 1,
},
'& .ce-block__content': {
px: 2,
},

0 comments on commit def5143

Please sign in to comment.