Skip to content

Commit 2e95c6f

Browse files
adamintAdam RatzmanJamesNK
authored
Add filter grouping labels for resource filters (#10713)
Co-authored-by: Adam Ratzman <[email protected]> Co-authored-by: James Newton-King <[email protected]>
1 parent 02a4d7d commit 2e95c6f

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

src/Aspire.Dashboard/Components/Controls/ResourceFilters.razor

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,30 @@
33
@inject IStringLocalizer<Dashboard.Resources.Resources> Loc
44

55
<FluentStack Orientation="Orientation.Vertical" VerticalGap="15">
6-
<div>
7-
<h5>@Loc[nameof(Resources.Resources.ResourcesResourceTypesHeader)]</h5>
6+
<fieldset class="filter-group">
7+
<legend>@Loc[nameof(Resources.Resources.ResourcesResourceTypesHeader)]</legend>
88
<SelectResourceOptions
99
Id="resource-types"
1010
Values="ResourceTypes"
1111
OnAllValuesCheckedChangedAsync="OnAllFilterVisibilityCheckedChangedAsync"
1212
OnValueVisibilityChangedAsync="OnResourceFilterVisibilityChangedAsync" />
13-
</div>
14-
<div>
15-
<h5>@Loc[nameof(Resources.Resources.ResourcesResourceStatesHeader)]</h5>
13+
</fieldset>
14+
<fieldset class="filter-group">
15+
<legend>@Loc[nameof(Resources.Resources.ResourcesResourceStatesHeader)]</legend>
1616
<SelectResourceOptions
1717
Id="resource-states"
1818
Values="ResourceStates"
1919
OnAllValuesCheckedChangedAsync="OnAllFilterVisibilityCheckedChangedAsync"
2020
OnValueVisibilityChangedAsync="OnResourceFilterVisibilityChangedAsync"/>
21-
</div>
22-
<div>
23-
<h5>@Loc[nameof(Resources.Resources.ResourcesDetailsHealthStateProperty)]</h5>
21+
</fieldset>
22+
<fieldset class="filter-group">
23+
<legend>@Loc[nameof(Resources.Resources.ResourcesDetailsHealthStateProperty)]</legend>
2424
<SelectResourceOptions
2525
Id="resource-health-states"
2626
Values="ResourceHealthStates"
2727
OnAllValuesCheckedChangedAsync="OnAllFilterVisibilityCheckedChangedAsync"
2828
OnValueVisibilityChangedAsync="OnResourceFilterVisibilityChangedAsync"/>
29-
</div>
29+
</fieldset>
3030
</FluentStack>
3131

3232
@code {

src/Aspire.Dashboard/wwwroot/css/app.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,3 +835,8 @@ fluent-tooltip[anchor="dialog_close"] > div {
835835
.fluent-messagebar-action {
836836
font-size: var(--type-ramp-minus-1-font-size);
837837
}
838+
839+
.filter-group > legend {
840+
font-size: var(--type-ramp-plus-2-font-size);
841+
font-weight: 500;
842+
}

0 commit comments

Comments
 (0)