Skip to content

Commit c11fcae

Browse files
fix: add ariaSetSize to AomMixin
1 parent e6db900 commit c11fcae

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

Diff for: src/aom.ts

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export const aom: IAom = {
3333
ariaRowIndex: 'aria-rowindex',
3434
ariaRowSpan: 'aria-rowspan',
3535
ariaSelected: 'aria-selected',
36+
ariaSetSize: 'aria-setsize',
3637
ariaSort: 'aria-sort',
3738
ariaValueMax: 'aria-valuemax',
3839
ariaValueMin: 'aria-valuemin',

Diff for: src/element-internals.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export class ElementInternals implements IElementInternals {
5555
ariaRowIndex: string;
5656
ariaRowSpan: string;
5757
ariaSelected: string;
58+
ariaSetSize: string;
5859
ariaSort: string;
5960
ariaValueMax: string;
6061
ariaValueMin: string;
@@ -129,7 +130,7 @@ export class ElementInternals implements IElementInternals {
129130
const id = ref.getAttribute('id');
130131
const hostRoot = ref.getRootNode() as Element;
131132
if (hostRoot && id) {
132-
return hostRoot ? hostRoot.querySelectorAll(`[for=${id}]`) : [];
133+
return hostRoot ? hostRoot.querySelectorAll(`[for=${id}]`) as unknown as LabelsList : [];
133134
}
134135
return [];
135136
}

Diff for: src/types.ts

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export interface IAom {
3333
ariaRowIndex: string;
3434
ariaRowSpan: string;
3535
ariaSelected: string;
36+
ariaSetSize: string;
3637
ariaSort: string;
3738
ariaValueMax: string;
3839
ariaValueMin: string;

0 commit comments

Comments
 (0)