({
theme,
customRippleColor,
}: Omit<ColorProps, 'disabled'>)
| 58 | }; |
| 59 | |
| 60 | const getRippleColor = ({ |
| 61 | theme, |
| 62 | customRippleColor, |
| 63 | }: Omit<ColorProps, 'disabled'>) => { |
| 64 | if (customRippleColor) { |
| 65 | return customRippleColor; |
| 66 | } |
| 67 | |
| 68 | if (theme.isV3) { |
| 69 | return color(theme.colors.onSurfaceVariant).alpha(0.12).rgb().string(); |
| 70 | } |
| 71 | |
| 72 | return undefined; |
| 73 | }; |
| 74 | |
| 75 | export const getMenuItemColor = ({ |
| 76 | theme, |
no outgoing calls
no test coverage detected
searching dependent graphs…