({
theme,
isOutlined,
disabled,
customBackgroundColor,
}: BaseProps & {
customBackgroundColor?: ColorValue;
})
| 116 | }; |
| 117 | |
| 118 | const getBackgroundColor = ({ |
| 119 | theme, |
| 120 | isOutlined, |
| 121 | disabled, |
| 122 | customBackgroundColor, |
| 123 | }: BaseProps & { |
| 124 | customBackgroundColor?: ColorValue; |
| 125 | }) => { |
| 126 | if (typeof customBackgroundColor === 'string') { |
| 127 | return customBackgroundColor; |
| 128 | } |
| 129 | |
| 130 | if (theme.isV3) { |
| 131 | if (disabled) { |
| 132 | if (isOutlined) { |
| 133 | return 'transparent'; |
| 134 | } |
| 135 | return color(theme.colors.onSurfaceVariant).alpha(0.12).rgb().string(); |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | return getDefaultBackgroundColor({ theme, isOutlined }); |
| 140 | }; |
| 141 | |
| 142 | const getSelectedBackgroundColor = ({ |
| 143 | theme, |
no test coverage detected
searching dependent graphs…