From b808e222745f5a7dbd7df790f1e9aa3f00b5452c Mon Sep 17 00:00:00 2001 From: isUnknown Date: Tue, 24 Feb 2026 14:44:12 +0100 Subject: [PATCH] fix: target p instead of body for text background-color in TextSettings Co-Authored-By: Claude Opus 4.6 --- src/components/editor/TextSettings.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/editor/TextSettings.vue b/src/components/editor/TextSettings.vue index 8df45ab..536f6aa 100644 --- a/src/components/editor/TextSettings.vue +++ b/src/components/editor/TextSettings.vue @@ -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