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

Arbitrary values for 'grid-cols' generate incorrect CSS #12654

Closed
utherpally opened this issue Dec 26, 2023 · 1 comment · Fixed by #12704
Closed

Arbitrary values for 'grid-cols' generate incorrect CSS #12654

utherpally opened this issue Dec 26, 2023 · 1 comment · Fixed by #12704
Assignees

Comments

@utherpally
Copy link

What version of Tailwind CSS are you using?

v3.4.0

What build tool (or framework if it abstracts the build tool) are you using?

@solidjs/start 0.4.2

What version of Node.js are you using?

v18.19.0

What browser are you using?

Firefox

What operating system are you using?

Linux (NixOS 24.05.20231211.a9bf124)

Reproduction URL

Tailwind Play link

Describe your issue

<div class="grid-cols-[[full-width-start]_minmax(1rem,1fr)_[content-start]_min(100%-2rem,60rem)_[content-end]_minmax(1rem,1fr)_[full-width-end]]" />

CSS generated:

grid-template-columns: [full-width-start] minmax(1rem,1fr) [content - start] min(100% - 2rem,60rem) [content - end] minmax(1rem,1fr) [full-width-end];

Expected:

No spaces in content - start and content - end

grid-template-columns: [full-width-start] minmax(1rem,1fr) [content-start] min(100% - 2rem,60rem) [content-end] minmax(1rem,1fr) [full-width-end];

Related #12281

@thecrypticace
Copy link
Contributor

This should be fixed by #12704, and will be available in the next release.

You can try it before then by using our insiders build — which should be ready in ~15m:

npm install tailwindcss@insiders

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.

2 participants