diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6178a07d..5865a3f0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,9 +9,13 @@ and this project adheres to
## [Unreleased]
+## Changed
+
+- 💄(frontend) error alert closeable on editor #284
+
## Fixed
-- 🐛 (backend) gitlab oicd userinfo endpoint #232
+- 🐛(backend) gitlab oicd userinfo endpoint #232
## [1.4.0] - 2024-09-17
diff --git a/src/frontend/apps/impress/src/components/TextErrors.tsx b/src/frontend/apps/impress/src/components/TextErrors.tsx
index b39ac33b..b5db019e 100644
--- a/src/frontend/apps/impress/src/components/TextErrors.tsx
+++ b/src/frontend/apps/impress/src/components/TextErrors.tsx
@@ -1,25 +1,34 @@
import { Alert, VariantType } from '@openfun/cunningham-react';
import { ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
+import styled from 'styled-components';
import { Box, Text, TextType } from '@/components';
+const AlertStyled = styled(Alert)`
+ & .c__button--tertiary:hover {
+ background-color: var(--c--theme--colors--greyscale-200);
+ }
+`;
+
interface TextErrorsProps extends TextType {
causes?: string[];
defaultMessage?: string;
icon?: ReactNode;
+ canClose?: boolean;
}
export const TextErrors = ({
causes,
defaultMessage,
icon,
+ canClose = false,
...textProps
}: TextErrorsProps) => {
const { t } = useTranslation();
return (
-
+
{causes &&
causes.map((cause, i) => (
@@ -39,6 +48,6 @@ export const TextErrors = ({
)}
-
+
);
};
diff --git a/src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteEditor.tsx b/src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteEditor.tsx
index 3d228a77..8895e41f 100644
--- a/src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteEditor.tsx
+++ b/src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteEditor.tsx
@@ -120,7 +120,11 @@ export const BlockNoteContent = ({
{isErrorAttachment && (
-
+
)}