mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-16 01:41:14 +08:00
6b0e9cb153
* 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>
16 lines
413 B
C#
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>
|