Skip to content

Commit 661d088

Browse files
committed
other component styling adjusted
1 parent 5630e7a commit 661d088

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

client/packages/lowcoder/src/comps/controls/styleControlConstants.tsx

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ const TEXT = {
277277
const STATIC_TEXT = {
278278
name: "staticText",
279279
label: trans("style.staticText"),
280-
depTheme: "canvas",
280+
depTheme: "primarySurface",
281281
depType: DEP_TYPE.CONTRAST_TEXT,
282282
transformer: contrastText,
283283
} as const;
@@ -562,7 +562,7 @@ function replaceAndMergeMultipleStyles(originalArray: any[], styleToReplace: str
562562
}
563563

564564
export const ButtonStyle = [
565-
getBackground('primary'),
565+
getBackground(),
566566
...STYLING_FIELDS_SEQUENCE
567567
] as const;
568568

@@ -1285,14 +1285,7 @@ function handleToHoverLink(color: string) {
12851285
}
12861286

12871287
export const LinkStyle = [
1288-
1289-
{
1290-
name: "background",
1291-
label: trans("style.background"),
1292-
depTheme: "canvas",
1293-
depType: DEP_TYPE.SELF,
1294-
transformer: toSelf,
1295-
},
1288+
getBackground(),
12961289
...replaceAndMergeMultipleStyles(STYLING_FIELDS_SEQUENCE, 'text', [...LinkTextStyle])
12971290
] as const;
12981291

0 commit comments

Comments
 (0)