From de1ab2c7f1c09b694ac90026ae9dad4f265a9d19 Mon Sep 17 00:00:00 2001 From: lijianan <574980606@qq.com> Date: Mon, 31 Oct 2022 10:55:08 +0800 Subject: [PATCH] fix: add white color (#38291) --- components/_util/wave.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/_util/wave.tsx b/components/_util/wave.tsx index 172c35f2ff..a35c2d1b2e 100644 --- a/components/_util/wave.tsx +++ b/components/_util/wave.tsx @@ -100,8 +100,10 @@ class Wave extends React.Component { // 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'