From 4922db67d3dc2140479cdb1bd4f346d246d77e2d Mon Sep 17 00:00:00 2001 From: ddincheva Date: Thu, 28 Jan 2021 12:21:28 +0200 Subject: [PATCH] fix(IgxCarousel): add correct aria attributes #8202 --- .../src/lib/carousel/carousel.component.html | 10 +++---- .../src/lib/carousel/carousel.component.ts | 30 +++++++------------ src/app/carousel/carousel.sample.html | 2 +- 3 files changed, 16 insertions(+), 26 deletions(-) diff --git a/projects/igniteui-angular/src/lib/carousel/carousel.component.html b/projects/igniteui-angular/src/lib/carousel/carousel.component.html index fc3d157e715..706329575a7 100644 --- a/projects/igniteui-angular/src/lib/carousel/carousel.component.html +++ b/projects/igniteui-angular/src/lib/carousel/carousel.component.html @@ -28,25 +28,25 @@ [id]="setId(slide)" [attr.role]="'tab'" [attr.aria-label]="setAriaLabel(slide)" + [attr.aria-controls]="'panel-' + slide.index" [attr.aria-selected]="slide.active"> -Carousel content with {{ total }} slides.
- {{getCarouselLabel}} + {{getCarouselLabel}}
-