Skip to content

Commit 8de3f30

Browse files
committed
fix(OUIA): reverted ouia component names to use V-PF3/ prefix
1 parent 6b2671a commit 8de3f30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ouia.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ export const ouiaProps = {
2424
export function useOUIAProps(props: OUIAProps, name: string | null = null, variant: string | null = null) {
2525
if (name === null) {
2626
const instance = getCurrentInstance();
27-
name = instance.proxy.$options.name;
27+
name = instance.proxy.$options.name.replace(/^pf-|^Pf/, '');
2828
}
2929

3030
return {
3131
ouiaProps: reactive({
32-
'data-ouia-component-type': name,
32+
'data-ouia-component-type': `V-PF3/${name}`,
3333
'data-ouia-safe': props.ouiaSafe,
3434
'data-ouia-component-id': props.ouiaId || getDefaultOUIAId(name, variant),
3535
}),

0 commit comments

Comments
 (0)