Skip to content

Commit

Permalink
Don't display browser tooltip for error icon (#4939)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesNK committed Jul 19, 2024
1 parent 6ce3b6a commit fd05785
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@
@if (_hasErrorInfo)
{
var iconId = Guid.NewGuid().ToString();

@*
We don't want a browser tooltip to display when hovering over the error icon.
Use alt instead of title for screen readers. Also, the column has a title set
so add a whitespace title to prevent a browser tooltip from displaying.
* We don't want a browser tooltip to display when hovering over the error icon.
* Use alt instead of title for screen readers. Also, the column has a title set
* so add a whitespace title to prevent a browser tooltip from displaying.
*@
var title = " ";

<FluentIcon alt="@Loc[nameof(Columns.LogMessageColumnExceptionDetailsTitle)]"
title="@Loc[nameof(Columns.LogMessageColumnExceptionDetailsTitle)].ToString()"
title="@title"
Style="flex-shrink: 0"
Id="@iconId"
Icon="Icons.Filled.Size16.DocumentError"
Expand Down

0 comments on commit fd05785

Please sign in to comment.