From 82409211823673074c6fe44ac5fa0ade6e8ccabe Mon Sep 17 00:00:00 2001 From: "ala'n (Alexey Stsefanovich)" Date: Tue, 23 Jul 2024 00:50:03 +0200 Subject: [PATCH] fix(esl-carousel): a11ty targets for arrow controls Co-authored-by: Anna Barmina --- src/modules/esl-carousel/plugin/dots/esl-carousel.nav.dots.ts | 2 +- src/modules/esl-carousel/plugin/nav/esl-carousel.nav.mixin.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/esl-carousel/plugin/dots/esl-carousel.nav.dots.ts b/src/modules/esl-carousel/plugin/dots/esl-carousel.nav.dots.ts index 3ddda6f3a..40461db02 100644 --- a/src/modules/esl-carousel/plugin/dots/esl-carousel.nav.dots.ts +++ b/src/modules/esl-carousel/plugin/dots/esl-carousel.nav.dots.ts @@ -127,7 +127,7 @@ export class ESLCarouselNavDots extends ESLBaseElement { /** @returns accessible target ID */ public get targetID(): string { - return this.$carousel ? this.$carousel.$slidesArea.id : ''; + return this.$carousel?.id || ''; } @ready diff --git a/src/modules/esl-carousel/plugin/nav/esl-carousel.nav.mixin.ts b/src/modules/esl-carousel/plugin/nav/esl-carousel.nav.mixin.ts index 487ff3991..6ba6f2690 100644 --- a/src/modules/esl-carousel/plugin/nav/esl-carousel.nav.mixin.ts +++ b/src/modules/esl-carousel/plugin/nav/esl-carousel.nav.mixin.ts @@ -42,7 +42,7 @@ export class ESLCarouselNavMixin extends ESLMixinElement { /** @returns accessible target ID */ public get targetID(): string { - return this.$carousel?.$slidesArea?.id || ''; + return this.$carousel?.id || ''; } @ready