Skip to content

Commit 50562a9

Browse files
Fix -bg-conic-* utilities (#17174)
The negative versions were missing the `deg` in `<number>deg` so they didn’t work whoops
1 parent 3c5903c commit 50562a9

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1818
- _Experimental_: Add `wrap-anywhere`, `wrap-break-word`, and `wrap-normal` utilities ([#12128](https://github.com/tailwindlabs/tailwindcss/pull/12128))
1919
- _Experimental_: Add `@source inline(…)` ([#17147](https://github.com/tailwindlabs/tailwindcss/pull/17147))
2020

21+
### Fixed
22+
23+
- Fix incorrect angle in `-bg-conic-*` utilities ([#17174](https://github.com/tailwindlabs/tailwindcss/pull/17174))
24+
2125
## [4.0.14] - 2025-03-13
2226

2327
### Fixed

packages/tailwindcss/src/utilities.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10176,7 +10176,7 @@ test('bg', async () => {
1017610176
}
1017710177
1017810178
.-bg-conic-45\\/oklab {
10179-
--tw-gradient-position: from calc(45 * -1) in oklab;
10179+
--tw-gradient-position: from calc(45deg * -1) in oklab;
1018010180
background-image: conic-gradient(var(--tw-gradient-stops));
1018110181
}
1018210182

packages/tailwindcss/src/utilities.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2502,7 +2502,7 @@ export function createUtilities(theme: Theme) {
25022502

25032503
if (!isPositiveInteger(value)) return
25042504

2505-
value = negative ? `calc(${value} * -1)` : `${value}deg`
2505+
value = negative ? `calc(${value}deg * -1)` : `${value}deg`
25062506

25072507
return [
25082508
decl('--tw-gradient-position', `from ${value} ${interpolationMethod}`),

0 commit comments

Comments
 (0)