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

Explain limitations of arbitrary values in bg-size and bg-position class groups in docs #301

Closed
dcastil opened this issue Aug 27, 2023 · 1 comment · Fixed by #328
Closed
Labels
context-v2 Related to tailwind-merge v2 documentation Improvements or additions to documentation
Milestone

Comments

@dcastil
Copy link
Owner

dcastil commented Aug 27, 2023

While working on #300 I realized that I only allow using arbitrary values in the class groups bg-size and bg-position with a label (e.g. length: and url: respectively).

The reason for it is that it is difficult to figure out whether something is a background-position or background-size with a simple regex since both allow similar-looking values.

I should explain these limitations of tailwind-merge in the docs to make it clear that this is the case and why.

@dcastil dcastil added the documentation Improvements or additions to documentation label Aug 27, 2023
@dcastil dcastil added this to the v2 milestone Aug 27, 2023
@github-actions
Copy link

This was addressed in release v2.0.0.

@dcastil dcastil added the context-v2 Related to tailwind-merge v2 label Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
context-v2 Related to tailwind-merge v2 documentation Improvements or additions to documentation
Projects
None yet
1 participant