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:
parent
dd1ca3c709
commit
72dea0cfea
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue