mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-04 04:58:05 +08:00
c559bd321e
when a screen reader parses an icon, it sees the role attribute has a value of 'img'. in the case where we don't want the screen reader to read the icon, the role can be assigned a blank value and the role attribute will not be added. instead, the aria-hidden attribute will be added with a value of 'true' no breaking changes
14 lines
333 B
C#
14 lines
333 B
C#
@namespace AntDesign
|
|
@inherits AntDomComponentBase
|
|
|
|
<span class="@ClassMapper.Class" style="@Style" id="@Id" tabindex="@TabIndex" @ref="Ref" @attributes="_attributes" @onclick:stopPropagation="StopPropagation">
|
|
@if (Component == null)
|
|
{
|
|
@((MarkupString) _svgImg)
|
|
}
|
|
else
|
|
{
|
|
@Component
|
|
}
|
|
</span>
|