Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Remove invalid gradient fallbacks
  • Loading branch information
adamwathan committed Oct 17, 2024
commit 7b28d871a9c19e7b2c7f380ec21eeae6f7cbe2d9
6 changes: 3 additions & 3 deletions packages/tailwindcss/src/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2517,12 +2517,12 @@ export function createUtilities(theme: Theme) {
]) {
staticUtility(`bg-gradient-to-${value}`, [
['--tw-gradient-position', `to ${direction},`],
['background-image', `linear-gradient(var(--tw-gradient-stops, to ${direction}))`],
['background-image', `linear-gradient(var(--tw-gradient-stops))`],
])

staticUtility(`bg-linear-to-${value}`, [
['--tw-gradient-position', `to ${direction},`],
['background-image', `linear-gradient(var(--tw-gradient-stops, to ${direction}))`],
['background-image', `linear-gradient(var(--tw-gradient-stops))`],
])
}

Expand Down Expand Up @@ -2578,7 +2578,7 @@ export function createUtilities(theme: Theme) {

return [
decl('--tw-gradient-position', `from ${value},`),
decl('background-image', `conic-gradient(var(--tw-gradient-stops,from ${value}))`),
decl('background-image', `conic-gradient(var(--tw-gradient-stops))`),
]
}
})
Expand Down