Clarify the replaceAlpha function comment (#19457)

## Summary

Updated the comment of the `replaceAlpha` function to clarify the
function's purpose.

## Test plan

n/a
This commit is contained in:
Rasso Hilber 2025-12-18 04:15:42 +01:00 • committed by GitHub
parent dd1ca3c709
commit 72dea0cfea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -193,7 +193,7 @@ export function withAlpha(value: string, alpha: string): string {
}
/**
* Apply opacity to a color using `color-mix`.
* Replace the opacity in a color using relative color syntax.
*/
export function replaceAlpha(value: string, alpha: string): string {
// Convert numeric values (like `0.5`) to percentages (like `50%`) so they