({
theme,
calculatedRippleColor,
underlayColor,
}: {
theme: InternalTheme;
calculatedRippleColor: ColorValue;
underlayColor?: string;
})
| 5 | import type { InternalTheme } from '../../types'; |
| 6 | |
| 7 | const getUnderlayColor = ({ |
| 8 | theme, |
| 9 | calculatedRippleColor, |
| 10 | underlayColor, |
| 11 | }: { |
| 12 | theme: InternalTheme; |
| 13 | calculatedRippleColor: ColorValue; |
| 14 | underlayColor?: string; |
| 15 | }) => { |
| 16 | if (underlayColor != null) { |
| 17 | return underlayColor; |
| 18 | } |
| 19 | |
| 20 | if (theme.isV3) { |
| 21 | return color(calculatedRippleColor).rgb().string(); |
| 22 | } |
| 23 | |
| 24 | return color(calculatedRippleColor).fade(0.5).rgb().string(); |
| 25 | }; |
| 26 | |
| 27 | const getRippleColor = ({ |
| 28 | theme, |
no outgoing calls
no test coverage detected
searching dependent graphs…