mirror of
https://github.com/docmost/docmost.git
synced 2026-08-22 21:52:12 +10:00
fix: arbitrary colors in dark mode
This commit is contained in:
@@ -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,
|
||||
};
|
||||
},
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user