@nativescript-community/ui-material-core
Advanced tools
Comparing version 7.2.12 to 7.2.13
@@ -190,9 +190,9 @@ import { Background, Button, Color, Length, PercentLength, Utils, View, androidDynamicElevationOffsetProperty, androidElevationProperty, backgroundInternalProperty } from '@nativescript/core'; | ||
export function install() { } | ||
export function getRippleColor(color, alpha = 61.5) { | ||
export function getRippleColor(color, alpha = 0) { | ||
if (color) { | ||
const temp = color instanceof Color ? color : new Color(color); | ||
if (temp.a !== 255) { | ||
if (temp.a !== 255 && alpha === 0) { | ||
return temp.android; | ||
} | ||
return temp.setAlpha(alpha).android; | ||
return temp.setAlpha(alpha || 61.5).android; | ||
} | ||
@@ -199,0 +199,0 @@ return null; |
{ | ||
"name": "@nativescript-community/ui-material-core", | ||
"version": "7.2.12", | ||
"version": "7.2.13", | ||
"description": "Material Core component", | ||
@@ -41,3 +41,3 @@ "main": "./index", | ||
"readmeFilename": "README.md", | ||
"gitHead": "6a5bdc8e9ce9e545feebf93fb624ed7055feaebc" | ||
"gitHead": "28202deef8ed033ef61b1e765f5e4d6a1fc56c52" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
119647