diff --git a/src/frontend/apps/e2e/__tests__/app-impress/doc-editor.spec.ts b/src/frontend/apps/e2e/__tests__/app-impress/doc-editor.spec.ts
index cc981f73..4c355861 100644
--- a/src/frontend/apps/e2e/__tests__/app-impress/doc-editor.spec.ts
+++ b/src/frontend/apps/e2e/__tests__/app-impress/doc-editor.spec.ts
@@ -802,6 +802,8 @@ test.describe('Doc Editor', () => {
await page.getByText('Symbols').scrollIntoViewIfNeeded();
await expect(page.getByRole('button', { name: '🛃' })).toBeVisible();
+ await page.keyboard.press('Escape');
+
await page.locator('.bn-side-menu > button').last().click();
await page.locator('.mantine-Menu-dropdown > button').last().click();
await page.locator('.bn-color-picker-dropdown > button').last().click();
diff --git a/src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-blocks/CalloutBlock.tsx b/src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-blocks/CalloutBlock.tsx
index f5144a26..4a54ca96 100644
--- a/src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-blocks/CalloutBlock.tsx
+++ b/src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-blocks/CalloutBlock.tsx
@@ -97,34 +97,41 @@ const CalloutComponent = ({
`}
>
-
+ {
+ if (e.key === 'Escape' && openEmojiPicker) {
+ setOpenEmojiPicker(false);
+ }
+ }}
+ $css={css`
+ font-size: 1.125rem;
+ cursor: ${isEditable ? 'pointer' : 'default'};
+ ${isEditable &&
+ `
&:hover {
background-color: rgba(0, 0, 0, 0.1);
}
`}
- `}
- $align="center"
- $width="28px"
- $radius="4px"
- >
- {block.props.emoji}
-
+ `}
+ $align="center"
+ $width="28px"
+ $radius="4px"
+ >
+ {block.props.emoji}
+
- {openEmojiPicker && (
-
- )}
+ {openEmojiPicker && (
+
+ )}
+
);