@vaadin/login 24.6.0 → 24.6.2

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": "24.6.0",
3
+ "version": "24.6.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,25 +37,25 @@
37
37
  "dependencies": {
38
38
  "@open-wc/dedupe-mixin": "^1.3.0",
39
39
  "@polymer/polymer": "^3.0.0",
40
- "@vaadin/button": "~24.6.0",
41
- "@vaadin/component-base": "~24.6.0",
42
- "@vaadin/overlay": "~24.6.0",
43
- "@vaadin/password-field": "~24.6.0",
44
- "@vaadin/text-field": "~24.6.0",
45
- "@vaadin/vaadin-lumo-styles": "~24.6.0",
46
- "@vaadin/vaadin-material-styles": "~24.6.0",
47
- "@vaadin/vaadin-themable-mixin": "~24.6.0",
40
+ "@vaadin/button": "~24.6.2",
41
+ "@vaadin/component-base": "~24.6.2",
42
+ "@vaadin/overlay": "~24.6.2",
43
+ "@vaadin/password-field": "~24.6.2",
44
+ "@vaadin/text-field": "~24.6.2",
45
+ "@vaadin/vaadin-lumo-styles": "~24.6.2",
46
+ "@vaadin/vaadin-material-styles": "~24.6.2",
47
+ "@vaadin/vaadin-themable-mixin": "~24.6.2",
48
48
  "lit": "^3.0.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@vaadin/chai-plugins": "~24.6.0",
52
- "@vaadin/checkbox": "~24.6.0",
53
- "@vaadin/testing-helpers": "^1.0.0",
51
+ "@vaadin/chai-plugins": "~24.6.2",
52
+ "@vaadin/checkbox": "~24.6.2",
53
+ "@vaadin/testing-helpers": "^1.1.0",
54
54
  "sinon": "^18.0.0"
55
55
  },
56
56
  "web-types": [
57
57
  "web-types.json",
58
58
  "web-types.lit.json"
59
59
  ],
60
- "gitHead": "c0b38aa981494d04fac64da35aa3890ad72551ea"
60
+ "gitHead": "ee2ea01a17d888403adb141515a0a3cef82b8b65"
61
61
  }
@@ -51,9 +51,9 @@ class LoginFormWrapper extends ThemableMixin(PolylitMixin(LitElement)) {
51
51
  render() {
52
52
  return html`
53
53
  <section part="form">
54
- <h2 part="form-title">${this.i18n.form.title}</h2>
54
+ <div part="form-title" role="heading" aria-level="2">${this.i18n.form.title}</div>
55
55
  <div part="error-message" ?hidden="${!this.error}">
56
- <h5 part="error-message-title">${this.i18n.errorMessage.title}</h5>
56
+ <strong part="error-message-title">${this.i18n.errorMessage.title}</strong>
57
57
  <p part="error-message-description">${this.i18n.errorMessage.message}</p>
58
58
  </div>
59
59
 
@@ -23,9 +23,9 @@ class LoginFormWrapper extends ThemableMixin(PolymerElement) {
23
23
  static get template() {
24
24
  return html`
25
25
  <section part="form">
26
- <h2 part="form-title">[[i18n.form.title]]</h2>
26
+ <div part="form-title" part="form-title" role="heading" aria-level="2">[[i18n.form.title]]</div>
27
27
  <div part="error-message" hidden$="[[!error]]">
28
- <h5 part="error-message-title">[[i18n.errorMessage.title]]</h5>
28
+ <strong part="error-message-title">[[i18n.errorMessage.title]]</strong>
29
29
  <p part="error-message-description">[[i18n.errorMessage.message]]</p>
30
30
  </div>
31
31
 
@@ -15,6 +15,10 @@ const loginFormWrapper = css`
15
15
 
16
16
  [part='form-title'] {
17
17
  margin-top: calc(var(--lumo-font-size-xxxl) - var(--lumo-font-size-xxl));
18
+ color: var(--lumo-header-text-color);
19
+ font-size: var(--lumo-font-size-xxl);
20
+ font-weight: 600;
21
+ line-height: var(--lumo-line-height-xs);
18
22
  }
19
23
 
20
24
  ::slotted([slot='submit']) {
@@ -65,8 +69,10 @@ const loginFormWrapper = css`
65
69
  }
66
70
 
67
71
  [part='error-message-title'] {
72
+ display: block;
68
73
  margin: 0 0 0.25em;
69
74
  color: inherit;
75
+ line-height: var(--lumo-line-height-xs);
70
76
  }
71
77
 
72
78
  [part='error-message-description'] {
@@ -19,6 +19,10 @@ const loginFormWrapper = css`
19
19
  [part='form-title'] {
20
20
  margin-top: calc(var(--material-h3-font-size) - var(--material-h4-font-size));
21
21
  font-size: var(--material-h5-font-size);
22
+ font-weight: 300;
23
+ line-height: 1.1;
24
+ letter-spacing: -0.01em;
25
+ text-indent: -0.07em;
22
26
  }
23
27
 
24
28
  ::slotted([slot='submit']) {
@@ -78,9 +82,12 @@ const loginFormWrapper = css`
78
82
  margin-right: calc(2.25rem * -0.95);
79
83
  }
80
84
 
81
- [part='error-message'] h5 {
85
+ [part='error-message-title'] {
86
+ display: block;
82
87
  margin: 0 0 0.25em;
83
88
  color: inherit;
89
+ line-height: 1.1;
90
+ text-indent: -0.025em;
84
91
  }
85
92
 
86
93
  [part='error-message'] p {
@@ -311,7 +311,7 @@ const loginFormWrapper = css`
311
311
  padding: 2rem 2.5rem 2rem 1.8rem;
312
312
  }
313
313
 
314
- :host([theme~='with-overlay']) [part='form'] h2 {
314
+ :host([theme~='with-overlay']) [part='form-title'] {
315
315
  text-align: center;
316
316
  font-size: 1.8em;
317
317
  font-weight: 500;
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/login",
4
- "version": "24.6.0",
4
+ "version": "24.6.2",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -148,7 +148,7 @@
148
148
  },
149
149
  {
150
150
  "name": "vaadin-login-overlay",
151
- "description": "`<vaadin-login-overlay>` is a wrapper of the `<vaadin-login-form>` which opens a login form in an overlay and\nhaving an additional `brand` part for application title and description. Using `<vaadin-login-overlay>` allows\npassword managers to work with login form.\n\n```\n<vaadin-login-overlay opened></vaadin-login-overlay>\n```\n\n### Styling\n\nThe component doesn't have a shadowRoot, so the `<form>` and input fields can be styled from a global scope.\nUse `<vaadin-login-overlay-wrapper>` and `<vaadin-login-form-wrapper>` to apply styles.\n\nThe following shadow DOM parts of the `<vaadin-login-overlay-wrapper>` are available for styling:\n\nPart name | Description\n----------------|---------------------------------------------------------|\n`card` | Container for the entire component's content\n`brand` | Container for application title and description\n`form` | Container for the `<vaadin-login-form>` component\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\nSee [`<vaadin-login-form>`](https://cdn.vaadin.com/vaadin-web-components/24.6.0/#/elements/vaadin-login-form)\ndocumentation for `<vaadin-login-form-wrapper>` stylable parts.",
151
+ "description": "`<vaadin-login-overlay>` is a wrapper of the `<vaadin-login-form>` which opens a login form in an overlay and\nhaving an additional `brand` part for application title and description. Using `<vaadin-login-overlay>` allows\npassword managers to work with login form.\n\n```\n<vaadin-login-overlay opened></vaadin-login-overlay>\n```\n\n### Styling\n\nThe component doesn't have a shadowRoot, so the `<form>` and input fields can be styled from a global scope.\nUse `<vaadin-login-overlay-wrapper>` and `<vaadin-login-form-wrapper>` to apply styles.\n\nThe following shadow DOM parts of the `<vaadin-login-overlay-wrapper>` are available for styling:\n\nPart name | Description\n----------------|---------------------------------------------------------|\n`card` | Container for the entire component's content\n`brand` | Container for application title and description\n`form` | Container for the `<vaadin-login-form>` component\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\nSee [`<vaadin-login-form>`](https://cdn.vaadin.com/vaadin-web-components/24.6.2/#/elements/vaadin-login-form)\ndocumentation for `<vaadin-login-form-wrapper>` stylable parts.",
152
152
  "attributes": [
153
153
  {
154
154
  "name": "action",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/login",
4
- "version": "24.6.0",
4
+ "version": "24.6.2",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -93,7 +93,7 @@
93
93
  },
94
94
  {
95
95
  "name": "vaadin-login-overlay",
96
- "description": "`<vaadin-login-overlay>` is a wrapper of the `<vaadin-login-form>` which opens a login form in an overlay and\nhaving an additional `brand` part for application title and description. Using `<vaadin-login-overlay>` allows\npassword managers to work with login form.\n\n```\n<vaadin-login-overlay opened></vaadin-login-overlay>\n```\n\n### Styling\n\nThe component doesn't have a shadowRoot, so the `<form>` and input fields can be styled from a global scope.\nUse `<vaadin-login-overlay-wrapper>` and `<vaadin-login-form-wrapper>` to apply styles.\n\nThe following shadow DOM parts of the `<vaadin-login-overlay-wrapper>` are available for styling:\n\nPart name | Description\n----------------|---------------------------------------------------------|\n`card` | Container for the entire component's content\n`brand` | Container for application title and description\n`form` | Container for the `<vaadin-login-form>` component\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\nSee [`<vaadin-login-form>`](https://cdn.vaadin.com/vaadin-web-components/24.6.0/#/elements/vaadin-login-form)\ndocumentation for `<vaadin-login-form-wrapper>` stylable parts.",
96
+ "description": "`<vaadin-login-overlay>` is a wrapper of the `<vaadin-login-form>` which opens a login form in an overlay and\nhaving an additional `brand` part for application title and description. Using `<vaadin-login-overlay>` allows\npassword managers to work with login form.\n\n```\n<vaadin-login-overlay opened></vaadin-login-overlay>\n```\n\n### Styling\n\nThe component doesn't have a shadowRoot, so the `<form>` and input fields can be styled from a global scope.\nUse `<vaadin-login-overlay-wrapper>` and `<vaadin-login-form-wrapper>` to apply styles.\n\nThe following shadow DOM parts of the `<vaadin-login-overlay-wrapper>` are available for styling:\n\nPart name | Description\n----------------|---------------------------------------------------------|\n`card` | Container for the entire component's content\n`brand` | Container for application title and description\n`form` | Container for the `<vaadin-login-form>` component\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\nSee [`<vaadin-login-form>`](https://cdn.vaadin.com/vaadin-web-components/24.6.2/#/elements/vaadin-login-form)\ndocumentation for `<vaadin-login-form-wrapper>` stylable parts.",
97
97
  "extension": true,
98
98
  "attributes": [
99
99
  {