Skip to content

Commit 1b72ced

Browse files
committed
refactor: Remove 'generic' aria role from allowed values
1 parent 56d3885 commit 1b72ced

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/jsx.d.ts

+2-10
Original file line numberDiff line numberDiff line change
@@ -1533,11 +1533,6 @@ export namespace JSXInternal {
15331533
cite?: Signalish<string | undefined>;
15341534
}
15351535

1536-
interface BodyHTMLAttributes<T extends EventTarget = HTMLBodyElement>
1537-
extends HTMLAttributes<T> {
1538-
role?: 'generic';
1539-
}
1540-
15411536
interface BrHTMLAttributes<T extends EventTarget = HTMLBRElement>
15421537
extends HTMLAttributes<T> {
15431538
role?: Signalish<'none' | 'presentation' | undefined>;
@@ -1689,7 +1684,6 @@ export namespace JSXInternal {
16891684
extends HTMLAttributes<T> {
16901685
role?: Signalish<
16911686
| 'contentinfo'
1692-
| 'generic'
16931687
| 'group'
16941688
| 'none'
16951689
| 'presentation'
@@ -1730,9 +1724,7 @@ export namespace JSXInternal {
17301724

17311725
interface HeaderHTMLAttributes<T extends EventTarget = HTMLElement>
17321726
extends HTMLAttributes<T> {
1733-
role?: Signalish<
1734-
'banner' | 'generic' | 'group' | 'none' | 'presentation' | undefined
1735-
>;
1727+
role?: Signalish<'banner' | 'group' | 'none' | 'presentation' | undefined>;
17361728
}
17371729

17381730
interface HrHTMLAttributes<T extends EventTarget = HTMLHRElement>
@@ -2955,7 +2947,7 @@ export namespace JSXInternal {
29552947
bdo: HTMLAttributes<HTMLElement>;
29562948
big: HTMLAttributes<HTMLElement>;
29572949
blockquote: BlockquoteHTMLAttributes<HTMLQuoteElement>;
2958-
body: BodyHTMLAttributes<HTMLBodyElement>;
2950+
body: HTMLAttributes<HTMLBodyElement>;
29592951
br: BrHTMLAttributes<HTMLBRElement>;
29602952
button: ButtonHTMLAttributes<HTMLButtonElement>;
29612953
canvas: CanvasHTMLAttributes<HTMLCanvasElement>;

0 commit comments

Comments
 (0)