Skip to content

Commit

Permalink
fix(carousel): changed carousel id (#6512)
Browse files Browse the repository at this point in the history
  • Loading branch information
SvetlanaMuravlova authored Sep 22, 2022
1 parent 1c41c6c commit 0380c3c
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions src/carousel/carousel.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
(keydown)="keydownPress($event)"
(focusin)="pauseFocusIn()"
(focusout)="pauseFocusOut()"
[id]="currentId"
[id]="'carousel' + currentId"
class="carousel slide" tabindex="0">
<ng-container *ngIf="!_bsVer.isBs5 && showIndicators && slides.length > 1">
<ol class="carousel-indicators">
Expand All @@ -21,7 +21,7 @@
[class.active]="slide.active === true"
(click)="selectSlide(i)"
type="button"
[attr.data-bs-target]="'#'+currentId"
[attr.data-bs-target]="'#carousel' + currentId"
[attr.data-bs-slide-to]="i" aria-current="true"
>
</button>
Expand All @@ -30,25 +30,25 @@
<div class="carousel-inner" [ngStyle]="{'display': multilist ? 'flex' : 'block'}">
<ng-content></ng-content>
</div>
<a class="left carousel-control carousel-control-prev"
href="javascript:void(0);"
[class.disabled]="checkDisabledClass('prev')"
[attr.data-bs-target]="'#'+currentId"
*ngIf="slides.length > 1"
(click)="previousSlide()"
tabindex="0" role="button">
<span class="icon-prev carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only visually-hidden">Previous</span>
</a>
<a class="left carousel-control carousel-control-prev"
href="javascript:void(0);"
[class.disabled]="checkDisabledClass('prev')"
[attr.data-bs-target]="'#carousel' + currentId"
*ngIf="slides.length > 1"
(click)="previousSlide()"
tabindex="0" role="button">
<span class="icon-prev carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only visually-hidden">Previous</span>
</a>

<a class="right carousel-control carousel-control-next"
href="javascript:void(0);"
*ngIf="slides.length > 1"
(click)="nextSlide()"
[class.disabled]="checkDisabledClass('next')"
[attr.data-bs-target]="'#'+currentId"
tabindex="0" role="button">
<span class="icon-next carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only visually-hidden">Next</span>
</a>
<a class="right carousel-control carousel-control-next"
href="javascript:void(0);"
*ngIf="slides.length > 1"
(click)="nextSlide()"
[class.disabled]="checkDisabledClass('next')"
[attr.data-bs-target]="'#carousel' + currentId"
tabindex="0" role="button">
<span class="icon-next carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only visually-hidden">Next</span>
</a>
</div>

0 comments on commit 0380c3c

Please sign in to comment.