Skip to content

Commit

Permalink
Fixed definition of place-content-* (#15440)
Browse files Browse the repository at this point in the history
The utilities `place-content-between`, `place-content-around`, and
`place-content-evenly` are defined incorrectly. This PR fixes them.

---------

Co-authored-by: Adam Wathan <[email protected]>
  • Loading branch information
thecrypticace and adamwathan authored Dec 19, 2024
1 parent 7bf11f9 commit ab49b59
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions packages/tailwindcss/src/utilities.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7454,15 +7454,15 @@ test('place-content', async () => {
]),
).toMatchInlineSnapshot(`
".place-content-around {
place-content: around;
place-content: space-around;
}
.place-content-baseline {
place-content: baseline start;
}
.place-content-between {
place-content: between;
place-content: space-between;
}
.place-content-center {
Expand All @@ -7474,7 +7474,7 @@ test('place-content', async () => {
}
.place-content-evenly {
place-content: evenly;
place-content: space-evenly;
}
.place-content-start {
Expand Down
6 changes: 3 additions & 3 deletions packages/tailwindcss/src/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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']])

Expand Down

0 comments on commit ab49b59

Please sign in to comment.