From f83768cafe0de11e9f931f30878c8fa8f3f5a844 Mon Sep 17 00:00:00 2001
From: William Martin
Date: Fri, 6 Aug 2021 10:00:11 -0400
Subject: [PATCH 01/11] build(commit): add husky and commitizen (#23714)
---
commitlint.config.js | 3 +++
package.json | 16 ++++++++++++++++
2 files changed, 19 insertions(+)
create mode 100644 commitlint.config.js
diff --git a/commitlint.config.js b/commitlint.config.js
new file mode 100644
index 0000000000..a4f4369773
--- /dev/null
+++ b/commitlint.config.js
@@ -0,0 +1,3 @@
+module.exports = {
+ extends: ['@commitlint/config-conventional']
+}
diff --git a/package.json b/package.json
index 0cbb502044..d5a20dabf6 100644
--- a/package.json
+++ b/package.json
@@ -9,11 +9,16 @@
"changelog": "conventional-changelog -p angular -i ./CHANGELOG.md -k core -s"
},
"devDependencies": {
+ "@commitlint/cli": "^13.1.0",
+ "@commitlint/config-conventional": "^13.1.0",
"@octokit/rest": "^17.11.2",
"colorette": "^1.2.1",
+ "commitizen": "^4.2.4",
"conventional-changelog-cli": "^2.1.1",
+ "cz-conventional-changelog": "^3.3.0",
"execa": "^0.10.0",
"fs-extra": "^7.0.0",
+ "husky": "^4.3.8",
"inquirer": "^6.0.0",
"listr": "^0.14.0",
"rimraf": "^2.6.3",
@@ -21,5 +26,16 @@
},
"engines": {
"node": ">= 10"
+ },
+ "config": {
+ "commitizen": {
+ "path": "./node_modules/cz-conventional-changelog"
+ }
+ },
+ "husky": {
+ "hooks": {
+ "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
+ "prepare-commit-msg": "exec < /dev/tty && git cz --hook || true"
+ }
}
}
From 067e621bbc3865184ae114b8c91122188c13c860 Mon Sep 17 00:00:00 2001
From: Jacob McKay
Date: Mon, 9 Aug 2021 15:18:53 -0500
Subject: [PATCH 02/11] fix(img): correctly determine when to load image when
scrolling quickly on slower devices (#23704)
resolves #23703
---
core/src/components/img/img.tsx | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/core/src/components/img/img.tsx b/core/src/components/img/img.tsx
index 80947ea17c..0f8c81ea85 100644
--- a/core/src/components/img/img.tsx
+++ b/core/src/components/img/img.tsx
@@ -60,10 +60,12 @@ export class Img implements ComponentInterface {
'isIntersecting' in window.IntersectionObserverEntry.prototype) {
this.removeIO();
this.io = new IntersectionObserver(data => {
- // because there will only ever be one instance
- // of the element we are observing
- // we can just use data[0]
- if (data[0].isIntersecting) {
+ /**
+ * On slower devices, it is possible for an intersection observer entry to contain multiple
+ * objects in the array. This happens when quickly scrolling an image into view and then out of
+ * view. In this case, the last object represents the current state of the component.
+ */
+ if (data[data.length - 1].isIntersecting) {
this.load();
this.removeIO();
}
From 6b18a89ac2c446082ce7faebe329157eedb13a0e Mon Sep 17 00:00:00 2001
From: Liam DeBeasi
Date: Mon, 9 Aug 2021 16:21:38 -0400
Subject: [PATCH 03/11] fix(back-button): MD ripple now accounts for
--ripple-color (#23749)
resolves #23748
---
core/src/components/back-button/back-button.scss | 9 ++++++++-
core/src/components/back-button/test/basic/index.html | 6 ++++++
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/core/src/components/back-button/back-button.scss b/core/src/components/back-button/back-button.scss
index 97e3342af4..9876135285 100644
--- a/core/src/components/back-button/back-button.scss
+++ b/core/src/components/back-button/back-button.scss
@@ -92,6 +92,13 @@
font-kerning: none;
}
+// Back Button Ripple effect
+// --------------------------------------------------
+
+ion-ripple-effect {
+ color: var(--ripple-color);
+}
+
// Back Button with Color
// --------------------------------------------------
@@ -241,4 +248,4 @@ ion-icon {
:host(.in-toolbar:not(.in-toolbar-color)) {
color: #{var(--ion-toolbar-color, var(--color))};
-}
\ No newline at end of file
+}
diff --git a/core/src/components/back-button/test/basic/index.html b/core/src/components/back-button/test/basic/index.html
index 23bf417c0f..7037ca5819 100644
--- a/core/src/components/back-button/test/basic/index.html
+++ b/core/src/components/back-button/test/basic/index.html
@@ -78,6 +78,8 @@
+
+
@@ -195,6 +197,10 @@
--ion-toolbar-background: #222;
--ion-toolbar-color: #ddd;
}
+
+ .ripple {
+ --ripple-color: red;
+ }