We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
2 parentse83c6b9 +d67b991 commitf905f49Copy full SHA for f905f49
client/packages/lowcoder/src/comps/controls/styleControl.tsx
@@ -873,15 +873,15 @@ export function styleControl<T extends readonly SingleColorConfig[]>(
873
const{ appliedThemeId, preventStyleOverwriting}=comp?.comp?.container||comp?.comp||{};
874
constappTheme=isPreviewTheme||isDefaultTheme||(!preventStyleOverwriting&&!preventAppStylesOverwriting)
875
?theme?.theme
876
- :undefined;
+ :defaultTheme;
877
constcompTheme=isPreviewTheme||isDefaultTheme||(compType&&!preventStyleOverwriting&&!preventAppStylesOverwriting)
878
?{
879
...(
880
theme?.theme?.components?.[compType]?.[styleKey]
881
||defaultTheme.components?.[compType]?.[styleKey]
882
)asunknownasRecord<string,string>
883
}
884
+ :defaultTheme.components?.[compType]?.[styleKey];
885
conststyleProps=(!comp&&!compType)||preventStyleOverwriting||preventAppStylesOverwriting||appliedThemeId===themeId
886
?propsasColorMap
887
:{}asColorMap;