Fixed definition of place-content-* (#15440)

The utilities `place-content-between`, `place-content-around`, and
`place-content-evenly` are defined incorrectly. This PR fixes them.

---------

Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
This commit is contained in:
Jordan Pittman 2024-12-18 20:17:29 -05:00 committed by GitHub
parent 7bf11f9087
commit ab49b59556
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 11 additions and 6 deletions

View File

@ -7,10 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Fixed
- Use the correct property value for `place-content-between`, `place-content-around`, and `place-content-evenly` utilities ([#15440](https://github.com/tailwindlabs/tailwindcss/pull/15440))
### Changed
- Removed `--container-prose` in favor of a deprecated `--max-width-prose` theme variable so that `*-prose` is only available for max-width utilities and only for backward compatibility ([#15439](https://github.com/tailwindlabs/tailwindcss/pull/15439))
## [4.0.0-beta.8] - 2024-12-17
### Fixed

View File

@ -7454,7 +7454,7 @@ test('place-content', async () => {
]),
).toMatchInlineSnapshot(`
".place-content-around {
place-content: around;
place-content: space-around;
}
.place-content-baseline {
@ -7462,7 +7462,7 @@ test('place-content', async () => {
}
.place-content-between {
place-content: between;
place-content: space-between;
}
.place-content-center {
@ -7474,7 +7474,7 @@ test('place-content', async () => {
}
.place-content-evenly {
place-content: evenly;
place-content: space-evenly;
}
.place-content-start {

View File

@ -1780,9 +1780,9 @@ export function createUtilities(theme: Theme) {
staticUtility('place-content-center', [['place-content', 'center']])
staticUtility('place-content-start', [['place-content', 'start']])
staticUtility('place-content-end', [['place-content', 'end']])
staticUtility('place-content-between', [['place-content', 'between']])
staticUtility('place-content-around', [['place-content', 'around']])
staticUtility('place-content-evenly', [['place-content', 'evenly']])
staticUtility('place-content-between', [['place-content', 'space-between']])
staticUtility('place-content-around', [['place-content', 'space-around']])
staticUtility('place-content-evenly', [['place-content', 'space-evenly']])
staticUtility('place-content-baseline', [['place-content', 'baseline']])
staticUtility('place-content-stretch', [['place-content', 'stretch']])