Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove double
translate-z-px
values (#16718)
This PR fixes an issue where if you used `translate-z-px` or `-translate-z-px` that the utility was generated twice: ```css .translate-z-px { --tw-translate-z: 1px; translate: var(--tw-translate-x) var(--tw-translate-y) var(--tw-translate-z); } .translate-z-px { --tw-translate-z: 1px; translate: var(--tw-translate-x) var(--tw-translate-y) var(--tw-translate-z); } @Property --tw-translate-x { syntax: "*"; inherits: false; initial-value: 0; } @Property --tw-translate-y { syntax: "*"; inherits: false; initial-value: 0; } @Property --tw-translate-z { syntax: "*"; inherits: false; initial-value: 0; } ``` With this PR, it will only generate once: ```css .translate-z-px { --tw-translate-z: 1px; translate: var(--tw-translate-x) var(--tw-translate-y) var(--tw-translate-z); } @Property --tw-translate-x { syntax: "*"; inherits: false; initial-value: 0; } @Property --tw-translate-y { syntax: "*"; inherits: false; initial-value: 0; } @Property --tw-translate-z { syntax: "*"; inherits: false; initial-value: 0; } ```
- Loading branch information