Browse Source

fix: add white color (#38291)

pull/38301/head
lijianan 2 years ago
committed by GitHub
parent
commit
de1ab2c7f1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/_util/wave.tsx

2
components/_util/wave.tsx

@ -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'

Loading…
Cancel
Save