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:
parent
b5b495d478
commit
b808e22274
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue