Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prefixedOnly option not respects prefix option with (Attributify preset) #1962

Closed
impcyber opened this issue Dec 4, 2022 · 0 comments · Fixed by #1964
Closed

prefixedOnly option not respects prefix option with (Attributify preset) #1962

impcyber opened this issue Dec 4, 2022 · 0 comments · Fixed by #1964

Comments

@impcyber
Copy link
Contributor

impcyber commented Dec 4, 2022

Regardless of the set prefix parameter prefixedOnly will generate output with other prefixed attributes

Config:

    presetAttributify({
      prefix: 'u-',
      strict: true,
      prefixedOnly: true,
    }),
<div
  x-cloak
  x-data="fade"
  x-bind="bindTarget"
  x-transition:enter="ease-out duration-2500"
  x-transition:enter-start="opacity-0"
  x-transition:enter-end="opacity-100"
  x-transition:leave="ease-in duration-250"
  x-transition:leave-start="opacity-100"
  x-transition:leave-end="opacity-0"
     
  x-test1="opacity-0"
  x-test2:a="opacity-0"
  test3="opacity-0"
  test4:a="opacity-0"
     
  u-fixed="~" u-z="9" u-inset="0"
  u-bg="black/50"
  u-backdrop="blur-2"
  u-transition="opacity blur" u-will-change="opacity blur"
></div>
[test4\:a~="opacity-0"]{test4:a~="opacity-0";}
[x-test2\:a~="opacity-0"]{x-test2:a~="opacity-0";}
[x-transition\:enter-end~="opacity-100"]{x-transition:enter-end~="opacity-100";}
[x-transition\:enter-start~="opacity-0"]{x-transition:enter-start~="opacity-0";}

Where {test4:a~="opacity-0";} or {x-transition:enter-end~="opacity-100";} are wrong style values

repro: repro

UPD:
Generates output only for atttributes contains colon in their names, e.g: x-transition:leave-end, data:a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant