fix: target p instead of body for text background-color in TextSettings

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
isUnknown 2026-02-24 14:44:12 +01:00
parent b5b495d478
commit b808e22274

View file

@ -483,7 +483,7 @@ watch(color, (val) => {
watch(background, (val) => {
if (isUpdatingFromStore) return;
updateStyle('body', 'background', val);
updateStyle('p', 'background', val);
});
// Watchers for paragraph styles
@ -668,7 +668,7 @@ const syncFromStore = () => {
const colorVal = extractValue('body', 'color');
if (colorVal) color.value = colorVal;
const bgVal = extractValue('body', 'background');
const bgVal = extractValue('p', 'background');
if (bgVal) background.value = bgVal;
// Paragraph styles