@vaadin/app-layout 23.0.0-alpha3 → 23.0.0-beta2
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/app-layout",
|
|
3
|
-
"version": "23.0.0-
|
|
3
|
+
"version": "23.0.0-beta2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"main": "vaadin-app-layout.js",
|
|
20
20
|
"module": "vaadin-app-layout.js",
|
|
21
|
+
"type": "module",
|
|
21
22
|
"files": [
|
|
22
23
|
"src",
|
|
23
24
|
"theme",
|
|
@@ -33,17 +34,17 @@
|
|
|
33
34
|
],
|
|
34
35
|
"dependencies": {
|
|
35
36
|
"@polymer/polymer": "^3.0.0",
|
|
36
|
-
"@vaadin/button": "23.0.0-
|
|
37
|
-
"@vaadin/component-base": "23.0.0-
|
|
38
|
-
"@vaadin/vaadin-lumo-styles": "23.0.0-
|
|
39
|
-
"@vaadin/vaadin-material-styles": "23.0.0-
|
|
40
|
-
"@vaadin/vaadin-themable-mixin": "23.0.0-
|
|
37
|
+
"@vaadin/button": "23.0.0-beta2",
|
|
38
|
+
"@vaadin/component-base": "23.0.0-beta2",
|
|
39
|
+
"@vaadin/vaadin-lumo-styles": "23.0.0-beta2",
|
|
40
|
+
"@vaadin/vaadin-material-styles": "23.0.0-beta2",
|
|
41
|
+
"@vaadin/vaadin-themable-mixin": "23.0.0-beta2"
|
|
41
42
|
},
|
|
42
43
|
"devDependencies": {
|
|
43
44
|
"@esm-bundle/chai": "^4.3.4",
|
|
44
|
-
"@vaadin/tabs": "23.0.0-
|
|
45
|
+
"@vaadin/tabs": "23.0.0-beta2",
|
|
45
46
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
46
47
|
"sinon": "^9.2.1"
|
|
47
48
|
},
|
|
48
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "a276f7a0fd00e5459b87267468e0dd0d4fb6f7f3"
|
|
49
50
|
}
|
package/src/vaadin-app-layout.js
CHANGED
|
@@ -451,6 +451,7 @@ class AppLayout extends ElementMixin(ThemableMixin(ControllerMixin(PolymerElemen
|
|
|
451
451
|
ready() {
|
|
452
452
|
super.ready();
|
|
453
453
|
this.addController(this.__focusTrapController);
|
|
454
|
+
this.__setAriaExpanded();
|
|
454
455
|
}
|
|
455
456
|
|
|
456
457
|
/** @protected */
|
|
@@ -509,6 +510,8 @@ class AppLayout extends ElementMixin(ThemableMixin(ControllerMixin(PolymerElemen
|
|
|
509
510
|
this.__releaseFocusFromDrawer();
|
|
510
511
|
}
|
|
511
512
|
}
|
|
513
|
+
|
|
514
|
+
this.__setAriaExpanded();
|
|
512
515
|
}
|
|
513
516
|
|
|
514
517
|
/**
|
|
@@ -542,6 +545,14 @@ class AppLayout extends ElementMixin(ThemableMixin(ControllerMixin(PolymerElemen
|
|
|
542
545
|
}
|
|
543
546
|
}
|
|
544
547
|
|
|
548
|
+
/** @private */
|
|
549
|
+
__setAriaExpanded() {
|
|
550
|
+
const toggle = this.querySelector('vaadin-drawer-toggle');
|
|
551
|
+
if (toggle) {
|
|
552
|
+
toggle.setAttribute('aria-expanded', this.drawerOpened);
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
|
|
545
556
|
/** @protected */
|
|
546
557
|
_updateDrawerSize() {
|
|
547
558
|
const childCount = this.querySelectorAll('[slot=drawer]').length;
|