@vaadin/text-area 22.0.7 → 22.0.10

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/text-area",
3
- "version": "22.0.7",
3
+ "version": "22.0.10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -32,17 +32,17 @@
32
32
  ],
33
33
  "dependencies": {
34
34
  "@polymer/polymer": "^3.0.0",
35
- "@vaadin/component-base": "^22.0.7",
36
- "@vaadin/field-base": "^22.0.7",
37
- "@vaadin/input-container": "^22.0.7",
38
- "@vaadin/vaadin-lumo-styles": "^22.0.7",
39
- "@vaadin/vaadin-material-styles": "^22.0.7",
40
- "@vaadin/vaadin-themable-mixin": "^22.0.7"
35
+ "@vaadin/component-base": "^22.0.10",
36
+ "@vaadin/field-base": "^22.0.10",
37
+ "@vaadin/input-container": "^22.0.10",
38
+ "@vaadin/vaadin-lumo-styles": "^22.0.10",
39
+ "@vaadin/vaadin-material-styles": "^22.0.10",
40
+ "@vaadin/vaadin-themable-mixin": "^22.0.10"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@esm-bundle/chai": "^4.3.4",
44
44
  "@vaadin/testing-helpers": "^0.3.2",
45
45
  "sinon": "^9.2.1"
46
46
  },
47
- "gitHead": "947d74491296ca746b360ecb5f5a8efd55ab2866"
47
+ "gitHead": "5977183ebfe56b017da471fd9162bb72e9ed477a"
48
48
  }
@@ -110,7 +110,13 @@ export class TextArea extends InputFieldMixin(ThemableMixin(ElementMixin(Polymer
110
110
  box-shadow: none;
111
111
  }
112
112
 
113
- [part='input-field'] ::slotted(*) {
113
+ /* Override styles from <vaadin-input-container> */
114
+ [part='input-field'] ::slotted(textarea) {
115
+ align-self: stretch;
116
+ white-space: pre-wrap;
117
+ }
118
+
119
+ [part='input-field'] ::slotted(:not(textarea)) {
114
120
  align-self: flex-start;
115
121
  }
116
122
 
@@ -51,8 +51,6 @@ const textArea = css`
51
51
  }
52
52
 
53
53
  [part='input-field'] ::slotted(textarea) {
54
- white-space: pre-wrap; /* override "nowrap" from <vaadin-text-field> */
55
- align-self: stretch; /* override "baseline" from <vaadin-text-field> */
56
54
  line-height: inherit;
57
55
  --_lumo-text-field-overflow-mask-image: none;
58
56
  }
@@ -17,11 +17,6 @@ const textArea = css`
17
17
  margin-top: 4px;
18
18
  }
19
19
 
20
- [part='input-field'] ::slotted(textarea) {
21
- white-space: pre-wrap; /* override "nowrap" from <vaadin-text-field> */
22
- align-self: stretch; /* override "baseline" from <vaadin-text-field> */
23
- }
24
-
25
20
  [part='input-field']::before,
26
21
  [part='input-field']::after {
27
22
  bottom: calc(var(--_text-area-vertical-scroll-position) * -1);