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

Add safe alignment utilities #14607

Open
wants to merge 2 commits into
base: next
Choose a base branch
from

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.

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.

1 participant