Skip to content

Commit a574af3

Browse files
committed
Take a elements without href as button
1 parent 7a62ca9 commit a574af3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@if (string.IsNullOrEmpty(Href))
22
{
3-
<a class="@CssClass">@ChildContent</a>
3+
<a class="@CssClass" role="button">@ChildContent</a>
44
}
55
else
66
{
@@ -9,10 +9,10 @@ else
99
@code {
1010
[Parameter]
1111
public string CssClass { get; set; }
12-
12+
1313
[Parameter]
1414
public string Href { get; set; }
15-
15+
1616
[Parameter]
17-
public RenderFragment ChildContent { get; set; }
17+
public RenderFragment ChildContent { get; set; }
1818
}

src/LinkDotNet.Blog.Web/Pages/_Layout.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
An unhandled exception has occurred. See browser dev tools for details.
4949
</environment>
5050
<a href="/" class="reload">Reload</a>
51-
<a class="dismiss">x</a>
51+
<a class="dismiss" role="button">x</a>
5252
</div>
5353
<script src="_framework/blazor.server.js"></script>
5454
<script async src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js" integrity="sha512-bgHRAiTjGrzHzLyKOnpFvaEpGzJet3z4tZnXGjpsCcqOnAH6VGUx9frc5bcIhKTVLEiCO6vEhNAgx5jtLUYrfA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>

0 commit comments

Comments
 (0)