Skip to content

Text Decoration and Text Transform property, along with fixes and addition of styles to other components #719

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Feb 28, 2024
Prev Previous commit
Next Next commit
CSS properties and their control added for segment control
  • Loading branch information
imtananikhwa committed Feb 27, 2024
commit 2c800456234ecd5375df427eb1f673be5d90d62d
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ const getStyle = (style: SegmentStyleType) => {
.ant-segmented-item-selected {
border-radius: ${style.radius};
}
&.ant-segmented, .ant-segmented-item-label {
font-family:${style.fontFamily};
font-style:${style.fontStyle};
font-size:${style.textSize};
font-weight:${style.textWeight};
text-transform:${style.textTransform};
text-decoration:${style.textDecoration};
}
`;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,7 @@ export const RadioStyle = [

export const SegmentStyle = [
LABEL,
...STYLING_FIELDS_SEQUENCE.filter((style)=> ['border','borderWidth'].includes(style.name) === false),
{
name: "indicatorBackground",
label: trans("style.indicatorBackground"),
Expand All @@ -906,10 +907,7 @@ export const SegmentStyle = [
depType: DEP_TYPE.CONTRAST_TEXT,
transformer: contrastText,
},
RADIUS,
VALIDATE,
MARGIN,
PADDING,
] as const;

const LinkTextStyle = [
Expand Down