diff --git a/plugins/carhop-blocks/src/content-box/edit.js b/plugins/carhop-blocks/src/content-box/edit.js
index a96513f..fe658f1 100644
--- a/plugins/carhop-blocks/src/content-box/edit.js
+++ b/plugins/carhop-blocks/src/content-box/edit.js
@@ -102,6 +102,10 @@ export default function Edit({ attributes, setAttributes, ...props }) {
value="backgrounded"
label="Fond coloré"
/>
+
- {blockVariant === "backgrounded" && (
-
-
- Couleur de fond
-
-
- <>
-
- >
-
-
- )}
+ {blockVariant === "backgrounded" ||
+ (blockVariant === "framed-backgrounded" && (
+
+
+ Couleur de fond
+
+
+ <>
+
+ >
+
+
+ ))}
- {blockVariant === "backgrounded" && postType !== "articles" && (
-
-
- Couleur du texte
-
-
-
-
-
- )}
+ {(blockVariant === "backgrounded" ||
+ blockVariant === "framed-backgrounded") &&
+ postType !== "articles" && (
+
+
+ Couleur du texte
+
+
+
+
+
+ )}
@@ -180,6 +190,7 @@ export default function Edit({ attributes, setAttributes, ...props }) {
"core/image",
"core/buttons",
"core/columns",
+ "core/file",
"core/post-title",
"core/embed",
"core/quote",
diff --git a/plugins/carhop-blocks/src/content-box/save.js b/plugins/carhop-blocks/src/content-box/save.js
index b900c77..c667262 100644
--- a/plugins/carhop-blocks/src/content-box/save.js
+++ b/plugins/carhop-blocks/src/content-box/save.js
@@ -20,7 +20,10 @@ export default function save({ attributes }) {
style: {
"--content-box-text-color": textColor ?? "inherit",
"--content-box-background-color":
- blockVariant === "backgrounded" ? backgroundColor : "transparent",
+ blockVariant === "backgrounded" ||
+ blockVariant === "framed-backgrounded"
+ ? backgroundColor
+ : "transparent",
},
})}
>