Skip to content

Commit 72dea0c

Browse files
authored
Clarify the replaceAlpha function comment (#19457)
## Summary Updated the comment of the `replaceAlpha` function to clarify the function's purpose. ## Test plan n/a
1 parent dd1ca3c commit 72dea0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/tailwindcss/src/utilities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export function withAlpha(value: string, alpha: string): string {
193193
}
194194

195195
/**
196-
* Apply opacity to a color using `color-mix`.
196+
* Replace the opacity in a color using relative color syntax.
197197
*/
198198
export function replaceAlpha(value: string, alpha: string): string {
199199
// Convert numeric values (like `0.5`) to percentages (like `50%`) so they

0 commit comments

Comments
 (0)