Skip to content

Commit 7d16078

Browse files
committed
refactor: Remove 'generic' aria role from allowed values
1 parent eef3c0d commit 7d16078

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/jsx.d.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,11 +1693,6 @@ export namespace JSXInternal {
16931693
cite?: Signalish<string | undefined>;
16941694
}
16951695

1696-
interface BodyHTMLAttributes<T extends EventTarget = HTMLBodyElement>
1697-
extends HTMLAttributes<T> {
1698-
role?: 'generic';
1699-
}
1700-
17011696
interface BrHTMLAttributes<T extends EventTarget = HTMLBRElement>
17021697
extends HTMLAttributes<T> {
17031698
role?: Signalish<'none' | 'presentation' | undefined>;
@@ -1845,7 +1840,6 @@ export namespace JSXInternal {
18451840
extends HTMLAttributes<T> {
18461841
role?: Signalish<
18471842
| 'contentinfo'
1848-
| 'generic'
18491843
| 'group'
18501844
| 'none'
18511845
| 'presentation'
@@ -1886,9 +1880,7 @@ export namespace JSXInternal {
18861880

18871881
interface HeaderHTMLAttributes<T extends EventTarget = HTMLElement>
18881882
extends HTMLAttributes<T> {
1889-
role?: Signalish<
1890-
'banner' | 'generic' | 'group' | 'none' | 'presentation' | undefined
1891-
>;
1883+
role?: Signalish<'banner' | 'group' | 'none' | 'presentation' | undefined>;
18921884
}
18931885

18941886
interface HrHTMLAttributes<T extends EventTarget = HTMLHRElement>
@@ -3096,7 +3088,7 @@ export namespace JSXInternal {
30963088
bdo: HTMLAttributes<HTMLElement>;
30973089
big: HTMLAttributes<HTMLElement>;
30983090
blockquote: BlockquoteHTMLAttributes<HTMLQuoteElement>;
3099-
body: BodyHTMLAttributes<HTMLBodyElement>;
3091+
body: HTMLAttributes<HTMLBodyElement>;
31003092
br: BrHTMLAttributes<HTMLBRElement>;
31013093
button: ButtonHTMLAttributes<HTMLButtonElement>;
31023094
canvas: CanvasHTMLAttributes<HTMLCanvasElement>;

0 commit comments

Comments
 (0)