Skip to content

Commit 2c80045

Browse files
committed
CSS properties and their control added for segment control
1 parent f501802 commit 2c80045

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

client/packages/lowcoder/src/comps/comps/selectInputComp/segmentedControl.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ const getStyle = (style: SegmentStyleType) => {
5252
.ant-segmented-item-selected {
5353
border-radius: ${style.radius};
5454
}
55+
&.ant-segmented, .ant-segmented-item-label {
56+
font-family:${style.fontFamily};
57+
font-style:${style.fontStyle};
58+
font-size:${style.textSize};
59+
font-weight:${style.textWeight};
60+
text-transform:${style.textTransform};
61+
text-decoration:${style.textDecoration};
62+
}
5563
`;
5664
};
5765

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -888,6 +888,7 @@ export const RadioStyle = [
888888

889889
export const SegmentStyle = [
890890
LABEL,
891+
...STYLING_FIELDS_SEQUENCE.filter((style)=> ['border','borderWidth'].includes(style.name) === false),
891892
{
892893
name: "indicatorBackground",
893894
label: trans("style.indicatorBackground"),
@@ -906,10 +907,7 @@ export const SegmentStyle = [
906907
depType: DEP_TYPE.CONTRAST_TEXT,
907908
transformer: contrastText,
908909
},
909-
RADIUS,
910910
VALIDATE,
911-
MARGIN,
912-
PADDING,
913911
] as const;
914912

915913
const LinkTextStyle = [

0 commit comments

Comments
 (0)