mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
feat(ripple): only enable ripple on android 5 or greater
This commit is contained in:
@@ -110,6 +110,16 @@ export class Platform {
|
||||
return this._versions;
|
||||
}
|
||||
|
||||
|
||||
version() {
|
||||
for (let platformName in this._versions) {
|
||||
if (this._versions[platformName]) {
|
||||
return this._versions[platformName];
|
||||
}
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {promise}
|
||||
* @description
|
||||
|
||||
@@ -47,6 +47,9 @@ Platform.register({
|
||||
'tablet'
|
||||
],
|
||||
settings: {
|
||||
activator: function(p) {
|
||||
return (p.version().major >= 5) ? 'ripple' : 'none';
|
||||
},
|
||||
hoverCSS: false,
|
||||
keyboardHeight: 300,
|
||||
mode: 'md',
|
||||
|
||||
Reference in New Issue
Block a user