@progressive-development/pd-forms 0.1.9 → 0.1.11

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
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent pd-forms following open-wc recommendations",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "author": "PD Progressive Development",
6
- "version": "0.1.9",
6
+ "version": "0.1.11",
7
7
  "main": "index.js",
8
8
  "module": "index.js",
9
9
  "scripts": {
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@lit-labs/motion": "^1.0.2",
23
23
  "@lit/localize": "^0.11.2",
24
- "@progressive-development/pd-icon": "^0.1.12",
24
+ "@progressive-development/pd-icon": "^0.1.13",
25
25
  "@progressive-development/pd-shared-styles": "0.1.1",
26
26
  "lit": "^2.2.0"
27
27
  },
@@ -33,10 +33,14 @@ export class PdFormContainer extends PdBaseUI {
33
33
  gap: 20px;
34
34
  }
35
35
 
36
+ .validation-info-container {
37
+ padding-top: var(--pd-form-row-padding-top, 10px);
38
+ }
39
+
36
40
  .validation-info {
37
41
  font-family: var(--pd-default-font-content-family);
38
- font-size: var(--pd-form-info-font-size, 1em);
39
- padding: 3em;
42
+ font-size: var(--pd-form-info-font-size, 0.8em);
43
+ padding: 0.5em;
40
44
  color:#58585a;
41
45
  border-radius: var(--pd-border-radius, 0);
42
46
  -moz-border-radius: var(--pd-border-radius, 0);
@@ -80,11 +84,12 @@ export class PdFormContainer extends PdBaseUI {
80
84
  return html`
81
85
  <form>
82
86
  <slot></slot>
83
- ${this.requiredFieldInfo ? html`
84
- <p class="validation-info ${this._requiredFieldsValid ? 'filled' : 'unfilled'}">
85
- ${msg('* Pflichtfeld',{desc: '#pd.form.required.info#'})}
86
- </p>` : ''}
87
- <br />
87
+ ${this.requiredFieldInfo ? html`
88
+ <div class="validation-info-container">
89
+ <p class="validation-info ${this._requiredFieldsValid ? 'filled' : 'unfilled'}">
90
+ ${msg('* Pflichtfeld',{desc: '#pd.form.required.info#'})}
91
+ </p>
92
+ </div>` : ''}
88
93
  </form>
89
94
  `;
90
95
  }
package/src/PdFormRow.js CHANGED
@@ -69,7 +69,7 @@ export class PdFormRow extends PdBaseUI {
69
69
  }
70
70
  /* Area is longer? Scrollbar? */
71
71
  ::slotted(.quarter4-area) {
72
- --pd-input-field-width: calc(var(--my-row-width) - 5px);
72
+ --pd-input-field-width: calc(var(--my-row-width) - 15px);
73
73
  }
74
74
 
75
75
  @media (max-width: 930px) {
@@ -26,6 +26,8 @@ export class PdRadioGroup extends PdBaseUIInput {
26
26
  gap: var(--pd-cb-group-gap, 20px);
27
27
  flex-direction: var(--pd-cb-group-direction, row);
28
28
  flex-wrap: wrap;
29
+ padding: var(--pd-input-label-padding, 0);
30
+ padding-top: 5px;
29
31
  }
30
32
 
31
33
  ::slotted(pd-checkbox) {
@@ -35,7 +35,7 @@ export const SharedInputFieldStyles = css`
35
35
  */
36
36
  .input-style {
37
37
  width: var(--pd-input-field-width, 250px);
38
- /* padding: var(--squi-input-padding, 0.5rem); */
38
+ padding: var(--pd-input-field-padding, 0.25rem);
39
39
  background-color: var(--pd-input-field-bg-col, var(--pd-default-bg-col));
40
40
  /*opacity: 80%;*/
41
41
  color: var(--pd-default-font-input-col);