@vaadin/login 25.0.0-alpha14 → 25.0.0-alpha16
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/login",
|
|
3
|
-
"version": "25.0.0-
|
|
3
|
+
"version": "25.0.0-alpha16",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -34,26 +34,26 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
37
|
-
"@vaadin/button": "25.0.0-
|
|
38
|
-
"@vaadin/component-base": "25.0.0-
|
|
39
|
-
"@vaadin/overlay": "25.0.0-
|
|
40
|
-
"@vaadin/password-field": "25.0.0-
|
|
41
|
-
"@vaadin/text-field": "25.0.0-
|
|
42
|
-
"@vaadin/vaadin-themable-mixin": "25.0.0-
|
|
37
|
+
"@vaadin/button": "25.0.0-alpha16",
|
|
38
|
+
"@vaadin/component-base": "25.0.0-alpha16",
|
|
39
|
+
"@vaadin/overlay": "25.0.0-alpha16",
|
|
40
|
+
"@vaadin/password-field": "25.0.0-alpha16",
|
|
41
|
+
"@vaadin/text-field": "25.0.0-alpha16",
|
|
42
|
+
"@vaadin/vaadin-themable-mixin": "25.0.0-alpha16",
|
|
43
43
|
"lit": "^3.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@vaadin/a11y-base": "25.0.0-
|
|
47
|
-
"@vaadin/chai-plugins": "25.0.0-
|
|
48
|
-
"@vaadin/checkbox": "25.0.0-
|
|
49
|
-
"@vaadin/test-runner-commands": "25.0.0-
|
|
46
|
+
"@vaadin/a11y-base": "25.0.0-alpha16",
|
|
47
|
+
"@vaadin/chai-plugins": "25.0.0-alpha16",
|
|
48
|
+
"@vaadin/checkbox": "25.0.0-alpha16",
|
|
49
|
+
"@vaadin/test-runner-commands": "25.0.0-alpha16",
|
|
50
50
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
51
|
-
"@vaadin/vaadin-lumo-styles": "25.0.0-
|
|
51
|
+
"@vaadin/vaadin-lumo-styles": "25.0.0-alpha16",
|
|
52
52
|
"sinon": "^18.0.0"
|
|
53
53
|
},
|
|
54
54
|
"web-types": [
|
|
55
55
|
"web-types.json",
|
|
56
56
|
"web-types.lit.json"
|
|
57
57
|
],
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "4b316158a4a4f702f032bc9940fc82f0faa840f4"
|
|
59
59
|
}
|
|
@@ -49,6 +49,8 @@ export const LoginOverlayMixin = (superClass) =>
|
|
|
49
49
|
super.firstUpdated();
|
|
50
50
|
|
|
51
51
|
this.setAttribute('role', 'dialog');
|
|
52
|
+
this.setAttribute('aria-modal', 'true');
|
|
53
|
+
this.setAttribute('tabindex', '0');
|
|
52
54
|
|
|
53
55
|
this.__titleController = new TitleController(this);
|
|
54
56
|
this.addController(this.__titleController);
|
|
@@ -42,10 +42,11 @@ class LoginOverlayWrapper extends OverlayMixin(DirMixin(ThemableMixin(PolylitMix
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
|
+
* Override method from OverlayFocusMixin to use owner as focus trap root
|
|
45
46
|
* @protected
|
|
46
47
|
* @override
|
|
47
48
|
*/
|
|
48
|
-
get
|
|
49
|
+
get _focusTrapRoot() {
|
|
49
50
|
return this.owner;
|
|
50
51
|
}
|
|
51
52
|
|
|
@@ -53,7 +54,7 @@ class LoginOverlayWrapper extends OverlayMixin(DirMixin(ThemableMixin(PolylitMix
|
|
|
53
54
|
render() {
|
|
54
55
|
return html`
|
|
55
56
|
<div id="backdrop" part="backdrop" ?hidden="${!this.withBackdrop}"></div>
|
|
56
|
-
<div part="overlay" id="overlay"
|
|
57
|
+
<div part="overlay" id="overlay">
|
|
57
58
|
<div part="content" id="content">
|
|
58
59
|
<section part="card">
|
|
59
60
|
<div part="brand">
|
|
@@ -68,13 +68,22 @@ class LoginOverlay extends LoginFormMixin(LoginOverlayMixin(ElementMixin(Themabl
|
|
|
68
68
|
|
|
69
69
|
static get styles() {
|
|
70
70
|
return css`
|
|
71
|
-
:host
|
|
72
|
-
|
|
71
|
+
:host([opened]),
|
|
72
|
+
:host([opening]),
|
|
73
|
+
:host([closing]) {
|
|
74
|
+
display: block !important;
|
|
75
|
+
position: absolute;
|
|
76
|
+
outline: none;
|
|
73
77
|
}
|
|
74
78
|
|
|
79
|
+
:host,
|
|
75
80
|
:host([hidden]) {
|
|
76
81
|
display: none !important;
|
|
77
82
|
}
|
|
83
|
+
|
|
84
|
+
:host(:focus) ::part(overlay) {
|
|
85
|
+
outline: var(--vaadin-focus-ring-width) solid var(--vaadin-focus-ring-color);
|
|
86
|
+
}
|
|
78
87
|
`;
|
|
79
88
|
}
|
|
80
89
|
|
package/web-types.json
CHANGED