diff --git a/apps/demo/src/assets/css/vars.css b/apps/demo/src/assets/css/vars.css index 85cff489c..c46c3f30d 100644 --- a/apps/demo/src/assets/css/vars.css +++ b/apps/demo/src/assets/css/vars.css @@ -14,5 +14,5 @@ --switch-field-direction: column; --textarea-resize: vertical; --textarea-width: 100%; - --textarea-height: 5rem; + --textarea-height: 10rem; } diff --git a/packages/vue-form/src/assets/css/input.css b/packages/vue-form/src/assets/css/input.css index 399a4b79b..4bf7c0dbf 100644 --- a/packages/vue-form/src/assets/css/input.css +++ b/packages/vue-form/src/assets/css/input.css @@ -14,11 +14,13 @@ --_input-field-border-radius: var(--form-input-border-radius, 0.25em); --_input-field-padding-h: var(--form-input-padding-h, 0.75em); --_input-field-padding-v: var(--form-input-padding-v, 0.65em); + --_input-field-height: var(--form-input-height, 2.8em); - border-radius: var(--_input-field-border-radius); border: 1px solid var(--_input-field-border-color); + border-radius: var(--_input-field-border-radius); font-size: 1rem; - padding: var(--_input-field-padding-v) var(--_input-field-padding-v); + height: var(--_input-field-height); + padding: var(--_input-field-padding-v) var(--_input-field-padding-h); width: 100%; } diff --git a/packages/vue-form/src/components/DatePicker.vue b/packages/vue-form/src/components/DatePicker.vue index 8e18c753a..93059623c 100644 --- a/packages/vue-form/src/components/DatePicker.vue +++ b/packages/vue-form/src/components/DatePicker.vue @@ -11,10 +11,13 @@ > div { + width: 100%; +} + .dp--clear-btn { --dp-icon-color: var(--icon-color, #555); } @@ -161,6 +168,10 @@ const onUpdate = ( --dp-icon-color: var(--icon-color, #555); } +.date-picker .field input { + --_input-field-padding-h: 2.2rem; +} + .invalid .dp__input { --dp-border-color: var(--danger-color, #dc3545); diff --git a/packages/vue-form/src/components/Select.vue b/packages/vue-form/src/components/Select.vue index 973ab7d00..9b21afe61 100644 --- a/packages/vue-form/src/components/Select.vue +++ b/packages/vue-form/src/components/Select.vue @@ -227,13 +227,18 @@ onMounted(() => { } .multiselect-input { + --_border-radius: var(--form-input-border-radius, 0.25em); --_multiselect-border-color: var(--form-input-border-color, #555); + --_padding-h: var(--padding-h, 0.75em); + --_padding-v: var(--form-input-padding-v, 0.65em); + --_height: var(--form-input-height, 2.8em); align-content: center; border: 1px solid var(--_multiselect-border-color); + border-radius: var(--_border-radius); cursor: pointer; - min-height: 3rem; - padding: 10px; + height: var(--_height); + padding: var(--_padding-v) var(--_padding-h); user-select: none; } diff --git a/packages/vue-form/src/components/__test__/snapshot/__snapshots__/DatePicker.test.ts.snap b/packages/vue-form/src/components/__test__/snapshot/__snapshots__/DatePicker.test.ts.snap index b5cea8515..9ead92797 100644 --- a/packages/vue-form/src/components/__test__/snapshot/__snapshots__/DatePicker.test.ts.snap +++ b/packages/vue-form/src/components/__test__/snapshot/__snapshots__/DatePicker.test.ts.snap @@ -19,7 +19,7 @@ exports[`DatePicker > matches snapshot 1`] = ` autocomplete="off" autoposition="true" canceltext="Cancel" - class="" + class="field" clearable="true" dark="false" disabled="false"