From 05a93bc47533a5bb89d62cd6ebeaf7d9aff6c723 Mon Sep 17 00:00:00 2001 From: Sebastien Tasson Date: Fri, 6 Oct 2017 06:58:52 +0000 Subject: [PATCH] feat(textfield): align textfield on mdc 0.22 add dense property --- components/textfield/README.md | 1 + components/textfield/mdc-textfield.vue | 79 +++++++++++++++++++------- 2 files changed, 59 insertions(+), 21 deletions(-) diff --git a/components/textfield/README.md b/components/textfield/README.md index 39b9ff98..347db69a 100644 --- a/components/textfield/README.md +++ b/components/textfield/README.md @@ -44,6 +44,7 @@ var vm = new Vue({ | props | Type | default | Description | |-------|------|---------|-------------| |`v-model`| String || binds textfield value | +|`dense`| Boolean | | compresses the textfield to make it slightly smaller | |`label`| String | | hint text | |`helptext`| String | | help text | |`helptext-persistent`| Boolean | | whether help text is persistent | diff --git a/components/textfield/mdc-textfield.vue b/components/textfield/mdc-textfield.vue index ee392798..1790067e 100644 --- a/components/textfield/mdc-textfield.vue +++ b/components/textfield/mdc-textfield.vue @@ -13,14 +13,14 @@ -
- -
@@ -43,11 +43,13 @@ :required="required" :size="size" :minlength="minlength" :maxlength="maxlength" :disabled="disabled" :aria-controls="'help-'+_uid"> -