fix: add white color (#38291)

This commit is contained in:
lijianan 2022-10-31 10:55:08 +08:00 committed by GitHub
parent 9352d24bc4
commit de1ab2c7f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,8 +100,10 @@ class Wave extends React.Component<WaveProps> {
// Not white or transparent or grey
if (
waveColor &&
waveColor !== '#fff' &&
waveColor !== '#ffffff' &&
waveColor !== 'rgb(255, 255, 255)' &&
waveColor !== 'rgba(255, 255, 255, 1)' &&
isNotGrey(waveColor) &&
!/rgba\((?:\d*, ){3}0\)/.test(waveColor) && // any transparent rgba color
waveColor !== 'transparent'