feat: add color paletee of neutral color (#5119)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { createNamespace, addUnit } from '../utils';
|
||||
import { BLUE, GRAY_DARK } from '../utils/constant';
|
||||
import { BLUE } from '../utils/constant';
|
||||
import { switchProps, SharedSwitchProps } from './shared';
|
||||
import { emit, inherit } from '../utils/functional';
|
||||
import Loading from '../loading';
|
||||
@@ -38,7 +38,7 @@ function Switch(
|
||||
backgroundColor: checked ? activeColor : inactiveColor
|
||||
};
|
||||
|
||||
const loadingColor = checked ? activeColor || BLUE : inactiveColor || GRAY_DARK;
|
||||
const loadingColor = checked ? activeColor || BLUE : inactiveColor || '';
|
||||
|
||||
function onClick(event: PointerEvent) {
|
||||
emit(ctx, 'click', event);
|
||||
|
||||
Reference in New Issue
Block a user