@vaadin/form-layout 23.2.0-alpha4 → 23.2.0-alpha5

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/form-layout",
3
- "version": "23.2.0-alpha4",
3
+ "version": "23.2.0-alpha5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,21 +36,21 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@polymer/polymer": "^3.0.0",
39
- "@vaadin/component-base": "23.2.0-alpha4",
40
- "@vaadin/vaadin-lumo-styles": "23.2.0-alpha4",
41
- "@vaadin/vaadin-material-styles": "23.2.0-alpha4",
42
- "@vaadin/vaadin-themable-mixin": "23.2.0-alpha4"
39
+ "@vaadin/component-base": "23.2.0-alpha5",
40
+ "@vaadin/vaadin-lumo-styles": "23.2.0-alpha5",
41
+ "@vaadin/vaadin-material-styles": "23.2.0-alpha5",
42
+ "@vaadin/vaadin-themable-mixin": "23.2.0-alpha5"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@esm-bundle/chai": "^4.3.4",
46
- "@vaadin/custom-field": "23.2.0-alpha4",
46
+ "@vaadin/custom-field": "23.2.0-alpha5",
47
47
  "@vaadin/testing-helpers": "^0.3.2",
48
- "@vaadin/text-field": "23.2.0-alpha4",
48
+ "@vaadin/text-field": "23.2.0-alpha5",
49
49
  "sinon": "^13.0.2"
50
50
  },
51
51
  "web-types": [
52
52
  "web-types.json",
53
53
  "web-types.lit.json"
54
54
  ],
55
- "gitHead": "cbf5f1d0f38ac9b81c65cf9ef5660182e176e598"
55
+ "gitHead": "c6247fd741d61096d75a71feda4a1faf88b6f0ce"
56
56
  }
@@ -531,8 +531,12 @@ class FormLayout extends ResizeMixin(ElementMixin(ThemableMixin(PolymerElement))
531
531
 
532
532
  if (child.localName === 'vaadin-form-item') {
533
533
  if (this._labelsOnTop) {
534
- child.setAttribute('label-position', 'top');
535
- } else {
534
+ if (child.getAttribute('label-position') !== 'top') {
535
+ child.__useLayoutLabelPosition = true;
536
+ child.setAttribute('label-position', 'top');
537
+ }
538
+ } else if (child.__useLayoutLabelPosition) {
539
+ delete child.__useLayoutLabelPosition;
536
540
  child.removeAttribute('label-position');
537
541
  }
538
542
  }
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/form-layout",
4
- "version": "23.2.0-alpha4",
4
+ "version": "23.2.0-alpha5",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/form-layout",
4
- "version": "23.2.0-alpha4",
4
+ "version": "23.2.0-alpha5",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {