Skip to content

[v4] Custom breakpoints paddings are not respected #15450

Answered by philipp-spiess
zommerberg asked this question in Help
Discussion options

You must be logged in to vote

Hey! We're sorting by the breakpoint value when generating these classes, the issue you're seeing is because you're adding a px value where as the default breakpoints are configured in rem instead. This means the values can't be sorted correctly anymore because of the unit mismatch.

I recommend setting the custom breakpoint to rem as well so it works as expected: https://play.tailwindcss.com/Zw7yHqbReM

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@zommerberg
Comment options

@valgeirb
Comment options

@valgeirb
Comment options

Answer selected by zommerberg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #15448 on December 19, 2024 12:48.