We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a5bdc8 commit bbd724aCopy full SHA for bbd724a
src/core/index.android.ts
@@ -197,13 +197,13 @@ export const themer = new Themer();
197
198
export function install() {}
199
200
-export function getRippleColor(color: string | Color, alpha = 61.5) {
+export function getRippleColor(color: string | Color, alpha = 0) {
201
if (color) {
202
const temp = color instanceof Color ? color : new Color(color);
203
- if (temp.a !== 255) {
+ if (temp.a !== 255 && alpha === 0) {
204
return temp.android;
205
}
206
- return temp.setAlpha(alpha).android;
+ return temp.setAlpha(alpha || 61.5).android;
207
208
return null;
209
0 commit comments