Skip to content

Commit

Permalink
fix(esl-carousel): a11ty targets for arrow controls
Browse files Browse the repository at this point in the history
Co-authored-by: Anna Barmina <[email protected]>
  • Loading branch information
ala-n and abarmina committed Jul 22, 2024
1 parent 0fa0ac7 commit 8240921
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8240921

Please sign in to comment.