Skip to content

Commit 89f5c5d

Browse files
committed
Merge branch 'main' into feat-radio-button
2 parents 9bd766a + b008908 commit 89f5c5d

File tree

12 files changed

+30
-20
lines changed

12 files changed

+30
-20
lines changed

src/BootstrapBlazor.Server/Components/Samples/CheckboxLists.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
<BootstrapInput @bind-Value="@Model.Name" />
129129
</div>
130130
<div class="col-12 col-sm-6">
131-
<CheckboxList @bind-Value="@SelectedItems" IsButton="true" Items="FooItems" />
131+
<CheckboxList @bind-Value="@SelectedItems" IsButton="true" Items="FooItems" ShowLabel="true" DisplayText="Hobby" />
132132
</div>
133133
</div>
134134
</ValidateForm>

src/BootstrapBlazor/BootstrapBlazor.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<Version>9.9.1-beta02</Version>
4+
<Version>9.9.1-beta03</Version>
55
</PropertyGroup>
66

77
<ItemGroup>

src/BootstrapBlazor/Components/Checkbox/CheckboxList.razor

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
<div class="@ButtonGroupClassString" role="group">
1414
@foreach (var item in Items)
1515
{
16-
<DynamicElement TagName="span" TriggerClick="!IsDisabled" OnClick="() => OnClick(item)" class="@GetButtonItemClassString(item)">
16+
<DynamicElement TagName="span" TriggerClick="!IsDisabled" OnClick="() => OnClick(item)"
17+
class="@GetButtonItemClassString(item)">
1718
@item.Text
1819
</DynamicElement>
1920
}

src/BootstrapBlazor/Components/Checkbox/CheckboxList.razor.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ public partial class CheckboxList<TValue> : ValidateBase<TValue>
3838
.Build();
3939

4040
private string? GetButtonItemClassString(SelectedItem item) => CssBuilder.Default("btn")
41-
.AddClass($"active bg-{Color.ToDescriptionString()}", CurrentValueAsString.Split(',', StringSplitOptions.RemoveEmptyEntries).Contains(item.Value))
41+
.AddClass($"btn-outline-{Color.ToDescriptionString()}")
42+
.AddClass($"active", CurrentValueAsString.Split(',', StringSplitOptions.RemoveEmptyEntries).Contains(item.Value))
4243
.Build();
4344

4445
/// <summary>

src/BootstrapBlazor/Components/Checkbox/CheckboxList.razor.scss

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.checkbox-list {
1+
.checkbox-list {
22
--bb-checkbox-item-width: #{$bb-checkbox-item-width};
33
min-height: var(--bb-height);
44
height: auto;
@@ -38,7 +38,6 @@
3838
}
3939

4040
.btn-group {
41-
border: var(--bs-border-width) solid var(--bs-border-color);
4241
display: inline-flex;
4342
flex: 0 !important;
4443
flex-wrap: nowrap;
@@ -54,13 +53,19 @@
5453

5554
&.disabled {
5655
> span {
56+
--bs-btn-hover-color: var(--bs-btn-color);
57+
--bs-btn-active-color: var(--bs-btn-color);
5758
opacity: var(--bs-btn-disabled-opacity);
5859

5960
&:not(.active) {
6061
background-color: var(--bs-secondary-bg);
6162
}
6263
}
6364
}
65+
66+
.btn-outline-info {
67+
--bs-btn-active-color: #fff;
68+
}
6469
}
6570
}
6671

src/BootstrapBlazor/Components/Collapse/Collapse.razor

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,16 @@
1919
@item.HeaderTemplate
2020
</div>
2121
}
22-
else if(!string.IsNullOrEmpty(item.Icon))
23-
{
24-
<i class="@GetItemIconString(item)"></i>
25-
}
2622
else
2723
{
28-
<span>@item.Text</span>
24+
if (!string.IsNullOrEmpty(item.Icon))
25+
{
26+
<i class="@GetItemIconString(item)"></i>
27+
}
28+
if (!string.IsNullOrEmpty(item.Text))
29+
{
30+
<span>@item.Text</span>
31+
}
2932
}
3033
</div>
3134
</div>

src/BootstrapBlazor/wwwroot/core/bootstrap/css/bootstrap.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/BootstrapBlazor/wwwroot/core/bootstrap/css/bootstrap.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/BootstrapBlazor/wwwroot/core/bootstrap/css/bootstrap.rtl.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/BootstrapBlazor/wwwroot/core/bootstrap/css/bootstrap.rtl.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)