Skip to content

Commit 150fba8

Browse files
committed
text comp styling adjusted
1 parent 918534a commit 150fba8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

client/packages/lowcoder/src/comps/comps/textComp.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ const getStyle = (style: TextStyleType) => {
2626
border-radius: ${(style.radius ? style.radius : "4px")};
2727
border: ${(style.borderWidth ? style.borderWidth : "0px")} solid ${style.border};
2828
color: ${style.text};
29-
font-size: ${style.textSize} !important;
30-
font-weight: ${style.textWeight} !important;
31-
font-family: ${style.fontFamily} !important;
32-
font-style:${style.fontStyle} !important;
3329
text-transform:${style.textTransform} !important;
3430
text-decoration:${style.textDecoration} !important;
3531
background-color: ${style.background};
@@ -40,6 +36,9 @@ const getStyle = (style: TextStyleType) => {
4036
margin: ${style.margin} !important;
4137
padding: ${style.padding};
4238
width: ${widthCalculator(style.margin)};
39+
font-family: ${style.fontFamily} !important;
40+
font-style:${style.fontStyle} !important;
41+
font-size: ${style.textSize} !important;
4342
// height: ${heightCalculator(style.margin)};
4443
h1 {
4544
line-height: 1.5;
@@ -60,6 +59,7 @@ const getStyle = (style: TextStyleType) => {
6059
h5,
6160
h6 {
6261
color: ${style.text};
62+
font-weight: ${style.textWeight} !important;
6363
}
6464
img,
6565
pre {

0 commit comments

Comments
 (0)