Skip to content

Commit

Permalink
Adjust AntDesign classnames
Browse files Browse the repository at this point in the history
  • Loading branch information
stsrki committed Oct 7, 2023
1 parent b2b8099 commit 46d356c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions Demos/Blazorise.Demo/Pages/Tests/TypographyPage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@
</CardBody>
<CardBody>
<Paragraph TextWeight="TextWeight.Bold">Bold text.</Paragraph>
<Paragraph TextWeight="TextWeight.SemiBold">SemiBold text.</Paragraph>
<Paragraph TextWeight="TextWeight.Normal">Normal weight text.</Paragraph>
<Paragraph TextWeight="TextWeight.Light">Light weight text.</Paragraph>
<Paragraph Italic>Italic text.</Paragraph>
Expand Down
2 changes: 1 addition & 1 deletion Source/Blazorise.AntDesign/AntDesignClassProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ public override string OffcanvasFade( bool showing, bool hiding ) => showing

public override string TextTransform( TextTransform textTransform ) => $"ant-typography-{ToTextTransform( textTransform )}";

public override string TextWeight( TextWeight textWeight ) => $"font-weight-{ToTextWeight( textWeight )}";
public override string TextWeight( TextWeight textWeight ) => $"ant-font-weight-{ToTextWeight( textWeight )}";

public override string TextOverflow( TextOverflow textOverflow ) => $"ant-typography-{ToTextOverflow( textOverflow )}";

Expand Down
2 changes: 1 addition & 1 deletion Source/Blazorise.AntDesign/Styles/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ ol.ant-ordered-list {
cursor: pointer;
}

.font-weight {
.ant-font-weight {
&-bold {
font-weight: 700;
}
Expand Down
10 changes: 5 additions & 5 deletions Source/Blazorise.AntDesign/wwwroot/blazorise.antdesign.css
Original file line number Diff line number Diff line change
Expand Up @@ -9188,19 +9188,19 @@ ol.ant-ordered-list-upper-roman {
cursor: pointer;
}

.font-weight-bold {
.ant-font-weight-bold {
font-weight: 700;
}
.font-weight-semibold {
.ant-font-weight-semibold {
font-weight: 600;
}
.font-weight-normal {
.ant-font-weight-normal {
font-weight: 400;
}
.font-weight-default {
.ant-font-weight-default {
font-weight: 400;
}
.font-weight-light {
.ant-font-weight-light {
font-weight: 300;
}

Expand Down

Large diffs are not rendered by default.

0 comments on commit 46d356c

Please sign in to comment.