Skip to content

Commit a13cdf0

Browse files
feat(popover): adding accessibility to the popover trigger - removing ts-reflection
1 parent 1bf6f99 commit a13cdf0

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

packages/kit-headless/src/utils/aria-attributes.type.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable @typescript-eslint/no-explicit-any */
22
import { AriaAttributes } from '@builder.io/qwik';
3-
import { propertiesOf } from 'ts-reflection';
3+
// import { propertiesOf } from 'ts-reflection';
44

55
type ToCamelCase<S extends string> = S extends `${infer Head}-${infer Tail}`
66
? `${Head}${Capitalize<ToCamelCase<Tail>>}`
@@ -37,13 +37,15 @@ export type ExtendedPropsByAriaAttribute<T = undefined> = T extends object
3737
export function isKeyOfQwikUiAriaAttributes(
3838
key: string
3939
): key is keyof QwikUiAriaAttributesKebab {
40-
const ariaAttributeKeys = propertiesOf<QwikUiAriaAttributesKebab>();
41-
return ariaAttributeKeys.includes(key as keyof QwikUiAriaAttributesKebab);
40+
// const ariaAttributeKeys = propertiesOf<QwikUiAriaAttributesKebab>();
41+
// return ariaAttributeKeys.includes(key as keyof QwikUiAriaAttributesKebab);
42+
return true;
4243
}
4344

4445
export function isKeyOfAriaAttributes(
4546
key: string
4647
): key is keyof AriaAttributes {
47-
const ariaAttributeKeys = propertiesOf<AriaAttributes>();
48-
return ariaAttributeKeys.includes(key as keyof AriaAttributes);
48+
// const ariaAttributeKeys = propertiesOf<AriaAttributes>();
49+
// return ariaAttributeKeys.includes(key as keyof AriaAttributes);
50+
return true;
4951
}

0 commit comments

Comments
 (0)