mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(android): make button default text not all caps for improved consistency (#10854)
This commit is contained in:
10
package.json
10
package.json
@@ -61,7 +61,7 @@
|
||||
"eslint": "~8.57.0",
|
||||
"eslint-config-prettier": "^10.0.0",
|
||||
"fork-ts-checker-webpack-plugin": "^7.0.0",
|
||||
"form-data": ">=4.0.4",
|
||||
"form-data": ">=4.0.4",
|
||||
"gonzales": "^1.0.7",
|
||||
"husky": "^9.0.0",
|
||||
"jest": "30.0.5",
|
||||
@@ -104,12 +104,12 @@
|
||||
"zx": "^8.3.0",
|
||||
"jest-util": "30.0.5"
|
||||
},
|
||||
"overrides": {
|
||||
"form-data": ">=4.0.4"
|
||||
},
|
||||
"overrides": {
|
||||
"form-data": ">=4.0.4"
|
||||
},
|
||||
"lint-staged": {
|
||||
"**/*.{js,ts,css,scss,json,html}": [
|
||||
"npx prettier --write"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -75,6 +75,8 @@ export class Button extends ButtonBase {
|
||||
public initNativeView(): void {
|
||||
super.initNativeView();
|
||||
const nativeView = this.nativeViewProtected;
|
||||
// make consistent with iOS, easier on users given css styling
|
||||
nativeView.setAllCaps(false);
|
||||
initializeClickListener();
|
||||
const clickListener = new ClickListener(this);
|
||||
nativeView.setOnClickListener(clickListener);
|
||||
|
||||
Reference in New Issue
Block a user