Skip to content

Commit

Permalink
Add hover and active sample
Browse files Browse the repository at this point in the history
  • Loading branch information
mhrastegari committed Feb 14, 2023
1 parent 585f099 commit 93868ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Pages/FetchData.razor
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ else
<tbody>
@foreach (var forecast in forecasts)
{
<tr>
<tr class="table-item">
<td>@forecast.Date.ToShortDateString()</td>
<td>@forecast.TemperatureC</td>
<td>@forecast.TemperatureF</td>
Expand Down
8 changes: 7 additions & 1 deletion wwwroot/styles/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,15 @@ html, body {
flex-direction: column;
}

.table-item:hover {
background-color: whitesmoke;
}

/* Default Blazor styles */
.table-item:active {
background-color: lightgray;
}

/* Default Blazor styles */
*,
*::after,
*::before {
Expand Down

0 comments on commit 93868ac

Please sign in to comment.