Skip to content

Commit 5f4c3d3

Browse files
authored
refactor(Carousel): update indicator for bootstrap 5.3.0 (#1338)
* refactor(Carousel): update indicator for bs 5.3.0 * chore: bump version 7.7.0
1 parent 1718bef commit 5f4c3d3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/BootstrapBlazor.Shared/Pages/Index.razor.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
right: 0;
3030
}
3131

32-
.welcome ::deep .carousel .carousel-indicators li {
32+
.welcome ::deep .carousel .carousel-indicators [data-bs-target] {
3333
background-color: #607D8B;
3434
}
3535

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>7.6.7</Version>
4+
<Version>7.7.0</Version>
55
</PropertyGroup>
66

77
<ItemGroup Condition="'$(TargetFramework)' == 'net5.0'">

src/BootstrapBlazor/Components/Carousel/Carousel.razor

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
<RenderTemplate>
1010
@if (ShowIndicators)
1111
{
12-
<ol class="carousel-indicators">
12+
<div class="carousel-indicators">
1313
@for (var index = 0; index < Items.Count; index++)
1414
{
15-
<li data-bs-slide-to="@index" class="@CheckActive(index)" data-bs-target="@TargetId"></li>
15+
<button data-bs-slide-to="@index" class="@CheckActive(index)" data-bs-target="@TargetId"></button>
1616
}
17-
</ol>
17+
</div>
1818
}
1919
<div class="carousel-inner">
2020
@for (var index = 0; index < Items.Count; index++)

0 commit comments

Comments
 (0)