Skip to content
Merged
Show file tree
Hide file tree
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
Prev Previous commit
Nitpicks
  • Loading branch information
philipp-spiess committed Apr 3, 2025
commit 8c5fc6eaae319ecbe2fef41cb5e0c5d499b57c0b
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- Don't rely on `@layer base` for the `@property` polyfills ([#17506](https://github.com/tailwindlabs/tailwindcss/pull/17506))
- Fix multi-value arbitrary inset shadow ([#17523](https://github.com/tailwindlabs/tailwindcss/pull/17523))
- Fix multi-value inset shadow ([#17523](https://github.com/tailwindlabs/tailwindcss/pull/17523))

## [4.1.1] - 2025-04-02

Expand Down
9 changes: 5 additions & 4 deletions packages/tailwindcss/src/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6183,11 +6183,12 @@ function alphaReplacedShadowProperties(
return varInjector(replaceAlpha(color, alpha))
})

const applyPrefix = prefix
? (x: string) => segment(x, ',')
.map((value) => `${prefix} ${value}`)
function applyPrefix(x: string) {
if (!prefix) return x
return segment(x, ',')
.map((value) => prefix + value)
.join(',')
: (x: string) => x;
}

if (requiresFallback) {
return [
Expand Down