feat(carousel): add circular scrolling support and improve button disable logic

This commit is contained in:
2026-07-23 11:53:56 -03:00
parent 326f2d9bcd
commit fb6ab2fca2
4 changed files with 78 additions and 2 deletions

View File

@@ -22,7 +22,7 @@
<button
type="button"
class="carousel__control carousel__control--previous"
[disabled]="!canScrollPrevious()"
[disabled]="isPreviousDisabled()"
[attr.aria-label]="previousLabel()"
(click)="previous()"
>
@@ -32,7 +32,7 @@
<button
type="button"
class="carousel__control carousel__control--next"
[disabled]="!canScrollNext()"
[disabled]="isNextDisabled()"
[attr.aria-label]="nextLabel()"
(click)="next()"
>