diff --git a/components/badge/BadgeRibbon.razor b/components/badge/BadgeRibbon.razor index 7f06694b..805a2015 100644 --- a/components/badge/BadgeRibbon.razor +++ b/components/badge/BadgeRibbon.razor @@ -7,7 +7,9 @@ @ChildContent }
- @if (TextTemplate != null)@TextTemplate else @Text + + @if (TextTemplate != null)@TextTemplate else @Text +
-
\ No newline at end of file + diff --git a/site/AntBlazor.Docs/Demos/Components/Badge/demo/Ribbon.razor b/site/AntBlazor.Docs/Demos/Components/Badge/demo/Ribbon.razor index 80ba9f9f..08e8fc28 100644 --- a/site/AntBlazor.Docs/Demos/Components/Badge/demo/Ribbon.razor +++ b/site/AntBlazor.Docs/Demos/Components/Badge/demo/Ribbon.razor @@ -2,6 +2,14 @@ And raises the spyglass.
+ + And raises the spyglass. + +
+ + And raises the spyglass. + +
Pushes open the window @@ -9,4 +17,4 @@ And raises the spyglass. - \ No newline at end of file + diff --git a/tests/badge/RibbonTests.cs b/tests/badge/RibbonTests.cs index 83625f50..e6a7895c 100644 --- a/tests/badge/RibbonTests.cs +++ b/tests/badge/RibbonTests.cs @@ -1,4 +1,4 @@ -using Bunit; +using Bunit; using Microsoft.AspNetCore.Components; using Xunit; @@ -13,6 +13,7 @@ namespace AntDesign.Tests.Badge cut.MarkupMatches(@"
+
@@ -32,6 +33,7 @@ namespace AntDesign.Tests.Badge
+
@@ -48,6 +50,7 @@ namespace AntDesign.Tests.Badge
+
@@ -68,6 +71,7 @@ namespace AntDesign.Tests.Badge
+
@@ -91,6 +95,7 @@ namespace AntDesign.Tests.Badge
+
@@ -112,7 +117,7 @@ namespace AntDesign.Tests.Badge
- unicorn + unicorn
@@ -142,7 +147,9 @@ namespace AntDesign.Tests.Badge
- Hello + + Hello +