ant-design-blazor/components/badge/BadgeRibbon.razor
abdelkrim boutkhil 6b0e9cb153 fix(module: badge): preset color of ribbon (#791)
* Fix ribbon syle

Text color was same as background color.

* Ribbon documentation

Added two ribbon examples with color set (preset and custom)

* fix : badgeribbon html content

Html content must be the same as in the react version

* revert changes

We don't change less files. They are copied from react version.

* revert

* tests: fix badgeribbon unit tests

Modified expected html to match markup from react version.

* Update tests/badge/RibbonTests.cs

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-11-17 16:38:32 +08:00

16 lines
413 B
C#

@namespace AntDesign
@inherits AntDomComponentBase
<div class="ant-ribbon-wrapper">
@if (ChildContent != null)
{
@ChildContent
}
<div class="@ClassMapper.Class" style="@_colorStyle">
<span class="ant-ribbon-text">
@if (TextTemplate != null)@TextTemplate else @Text
</span>
<div class="ant-ribbon-corner" style="@_cornerColorStyle" />
</div>
</div>