fix: missing title. in theme path for color (#1703)

This commit is contained in:
Tobias Linsefors
2025-03-31 11:14:19 +02:00
committed by GitHub
parent d946c9775e
commit 6b731b0f8b

View File

@@ -128,7 +128,7 @@ export function resolveTextStyle(textComp, target, theme, objectType) {
color:
textProps.color && textProps.color.color !== 'none'
? theme.getColorPickerColor(textProps.color)
: theme.getStyle(`object.${objectType}`, target, 'color'),
: theme.getStyle(`object.${objectType}`, `title.${target}`, 'color'),
backgroundColor:
textProps.backgroundColor || theme.getStyle(`object.${objectType}`, `title.${target}`, 'backgroundColor'),
fontWeight: fontStyle.includes('bold') ? 'bold' : 'normal',