Skip to content

Commit 36dfe1f

Browse files
Rename bg-round -> bg-repeat-round, bg-space -> bg-repeat-space (#15462)
When we were porting all of the utilities from v3 to v4 we accidentally used the wrong names for these two classes, so this PR fixes that and corrects them back to the names used in v3. | Before | After | | --- | --- | | `bg-round` | `bg-repeat-round` | | `bg-space` | `bg-repeat-space` | --------- Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
1 parent 00ccbdc commit 36dfe1f

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- 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))
1313
- Don’t detect arbitrary properties when preceded by an escape ([#15456](https://github.com/tailwindlabs/tailwindcss/pull/15456))
14+
- Fix incorrectly named `bg-round` and `bg-space` utilities to `bg-repeat-round` to `bg-repeat-space` ([#15462](https://github.com/tailwindlabs/tailwindcss/pull/15462))
1415

1516
### Changed
1617

1718
- 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))
1819

19-
2020
## [4.0.0-beta.8] - 2024-12-17
2121

2222
### Fixed

packages/tailwindcss/src/__snapshots__/intellisense.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2179,14 +2179,14 @@ exports[`getClassList 1`] = `
21792179
"bg-radial/increasing",
21802180
"bg-radial/decreasing",
21812181
"bg-repeat",
2182+
"bg-repeat-round",
2183+
"bg-repeat-space",
21822184
"bg-repeat-x",
21832185
"bg-repeat-y",
21842186
"bg-right",
21852187
"bg-right-bottom",
21862188
"bg-right-top",
2187-
"bg-round",
21882189
"bg-scroll",
2189-
"bg-space",
21902190
"bg-top",
21912191
"bg-transparent",
21922192
"bg-transparent/0",

packages/tailwindcss/src/utilities.test.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10499,8 +10499,8 @@ test('bg', async () => {
1049910499
'bg-no-repeat',
1050010500
'bg-repeat-x',
1050110501
'bg-repeat-y',
10502-
'bg-round',
10503-
'bg-space',
10502+
'bg-repeat-round',
10503+
'bg-repeat-space',
1050410504
],
1050510505
),
1050610506
).toMatchInlineSnapshot(`
@@ -10935,20 +10935,20 @@ test('bg', async () => {
1093510935
background-repeat: repeat;
1093610936
}
1093710937
10938-
.bg-repeat-x {
10939-
background-repeat: repeat-x;
10938+
.bg-repeat-round {
10939+
background-repeat: round;
1094010940
}
1094110941
10942-
.bg-repeat-y {
10943-
background-repeat: repeat-y;
10942+
.bg-repeat-space {
10943+
background-repeat: space;
1094410944
}
1094510945
10946-
.bg-round {
10947-
background-repeat: round;
10946+
.bg-repeat-x {
10947+
background-repeat: repeat-x;
1094810948
}
1094910949
10950-
.bg-space {
10951-
background-repeat: space;
10950+
.bg-repeat-y {
10951+
background-repeat: repeat-y;
1095210952
}"
1095310953
`)
1095410954
expect(

packages/tailwindcss/src/utilities.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2290,8 +2290,8 @@ export function createUtilities(theme: Theme) {
22902290
staticUtility('bg-no-repeat', [['background-repeat', 'no-repeat']])
22912291
staticUtility('bg-repeat-x', [['background-repeat', 'repeat-x']])
22922292
staticUtility('bg-repeat-y', [['background-repeat', 'repeat-y']])
2293-
staticUtility('bg-round', [['background-repeat', 'round']])
2294-
staticUtility('bg-space', [['background-repeat', 'space']])
2293+
staticUtility('bg-repeat-round', [['background-repeat', 'round']])
2294+
staticUtility('bg-repeat-space', [['background-repeat', 'space']])
22952295

22962296
staticUtility('bg-none', [['background-image', 'none']])
22972297

0 commit comments

Comments
 (0)