Skip to content

Conversation

@benface
Copy link
Contributor

@benface benface commented Oct 5, 2024

Fixes #7929 and #12916

This PR adds safe alignment utilities to Tailwind 4. I opted to include them for every justify/align content/items/self property, but only for the end and center values. I know that it doesn't make sense for start (as the point of safe alignment is to fall back to start when it overflows), but I'm not sure about space-between, space-around, or other values. I certainly never encountered a situation where I needed safe with those.

@philipp-spiess philipp-spiess force-pushed the benface/safe-alignment branch from 43fda0b to 76966de Compare March 17, 2025 12:57
Copy link
Member

@philipp-spiess philipp-spiess left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey! I've updated your PR and added the new utilities behind a feature flag. The idea is that we release these with 4.1 but we might change the exact names (although current thinking is that the -safe suffix is nice because we can educates users to use these new utilities when they start typing items-en… and we show IntelliSense suggestions).

Thanks for the PR!

@philipp-spiess philipp-spiess merged commit ebfde31 into tailwindlabs:main Mar 17, 2025
5 checks passed
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 this pull request may close these issues.

2 participants