update alpha handling
This commit is contained in:
parent
767ceb525e
commit
a2926f7bb4
1 changed files with 2 additions and 1 deletions
|
@ -14,7 +14,8 @@ function getBackgroundColor( color ) {
|
|||
function getLinkColor( text ) {
|
||||
// if it starts with a hash, leave it be
|
||||
if ( typeof text === 'string' && text.match( /^#/ ) ) {
|
||||
return text;
|
||||
// we don't handle the alpha channel if present.
|
||||
return text.substring( 0, 7 );
|
||||
}
|
||||
// var:preset|color|luminous-vivid-amber
|
||||
// var(--wp--preset--color--luminous-vivid-amber)
|
||||
|
|
Loading…
Reference in a new issue