@angular/cdk 11.2.9 → 11.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_a11y.scss +4 -0
- package/a11y/_a11y.scss +4 -0
- package/a11y-prebuilt.css +1 -1
- package/bundles/cdk-a11y.umd.js +6 -1
- package/bundles/cdk-a11y.umd.js.map +1 -1
- package/bundles/cdk-a11y.umd.min.js +5 -5
- package/bundles/cdk-a11y.umd.min.js.map +1 -1
- package/bundles/cdk-overlay.umd.js +14 -12
- package/bundles/cdk-overlay.umd.js.map +1 -1
- package/bundles/cdk-overlay.umd.min.js +4 -4
- package/bundles/cdk-overlay.umd.min.js.map +1 -1
- package/bundles/cdk-testing.umd.js +41 -4
- package/bundles/cdk-testing.umd.js.map +1 -1
- package/bundles/cdk-testing.umd.min.js +4 -4
- package/bundles/cdk-testing.umd.min.js.map +1 -1
- package/bundles/cdk.umd.js +1 -1
- package/bundles/cdk.umd.js.map +1 -1
- package/bundles/cdk.umd.min.js +1 -1
- package/bundles/cdk.umd.min.js.map +1 -1
- package/esm2015/a11y/focus-trap/focus-trap.js +7 -2
- package/esm2015/overlay/dispatchers/overlay-outside-click-dispatcher.js +15 -13
- package/esm2015/testing/component-harness.js +42 -4
- package/esm2015/version.js +1 -1
- package/fesm2015/a11y.js +6 -1
- package/fesm2015/a11y.js.map +1 -1
- package/fesm2015/cdk.js +1 -1
- package/fesm2015/cdk.js.map +1 -1
- package/fesm2015/overlay.js +14 -12
- package/fesm2015/overlay.js.map +1 -1
- package/fesm2015/testing.js +41 -3
- package/fesm2015/testing.js.map +1 -1
- package/package.json +1 -1
- package/schematics/ng-add/index.js +1 -1
package/_a11y.scss
CHANGED
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
position: absolute;
|
|
10
10
|
width: 1px;
|
|
11
11
|
|
|
12
|
+
// This works around a Chrome bug that can cause the tab to crash when large amounts of
|
|
13
|
+
// non-English text get wrapped: https://bugs.chromium.org/p/chromium/issues/detail?id=1201444
|
|
14
|
+
white-space: nowrap;
|
|
15
|
+
|
|
12
16
|
// Avoid browsers rendering the focus ring in some cases.
|
|
13
17
|
outline: 0;
|
|
14
18
|
|
package/a11y/_a11y.scss
CHANGED
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
position: absolute;
|
|
10
10
|
width: 1px;
|
|
11
11
|
|
|
12
|
+
// This works around a Chrome bug that can cause the tab to crash when large amounts of
|
|
13
|
+
// non-English text get wrapped: https://bugs.chromium.org/p/chromium/issues/detail?id=1201444
|
|
14
|
+
white-space: nowrap;
|
|
15
|
+
|
|
12
16
|
// Avoid browsers rendering the focus ring in some cases.
|
|
13
17
|
outline: 0;
|
|
14
18
|
|
package/a11y-prebuilt.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;outline:0;-webkit-appearance:none;-moz-appearance:none}
|
|
1
|
+
.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none}
|
package/bundles/cdk-a11y.umd.js
CHANGED
|
@@ -1557,7 +1557,12 @@
|
|
|
1557
1557
|
}
|
|
1558
1558
|
};
|
|
1559
1559
|
CdkTrapFocus.prototype._captureFocus = function () {
|
|
1560
|
-
|
|
1560
|
+
var _a, _b;
|
|
1561
|
+
// If the `activeElement` is inside a shadow root, `document.activeElement` will
|
|
1562
|
+
// point to the shadow root so we have to descend into it ourselves.
|
|
1563
|
+
var activeElement = (_a = this._document) === null || _a === void 0 ? void 0 : _a.activeElement;
|
|
1564
|
+
this._previouslyFocusedElement =
|
|
1565
|
+
((_b = activeElement === null || activeElement === void 0 ? void 0 : activeElement.shadowRoot) === null || _b === void 0 ? void 0 : _b.activeElement) || activeElement;
|
|
1561
1566
|
this.focusTrap.focusInitialElementWhenReady();
|
|
1562
1567
|
};
|
|
1563
1568
|
return CdkTrapFocus;
|