fix: arbitrary colors in dark mode

This commit is contained in:
Philipinho
2026-08-11 14:32:28 +01:00
parent 2fe13daa09
commit 228fe14cd8
3 changed files with 12 additions and 2 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ export const TableCell = TiptapTableCell.extend({
return {};
}
return {
style: `background-color: ${attributes.backgroundColor}`,
style: `background-color: ${attributes.backgroundColor}; --cell-bg: ${attributes.backgroundColor}`,
"data-background-color": attributes.backgroundColor,
};
},
+1 -1
View File
@@ -19,7 +19,7 @@ export const TableHeader = TiptapTableHeader.extend({
return {};
}
return {
style: `background-color: ${attributes.backgroundColor}`,
style: `background-color: ${attributes.backgroundColor}; --cell-bg: ${attributes.backgroundColor}`,
"data-background-color": attributes.backgroundColor,
};
},