diff --git a/src/components/Form/fields/FieldSelect.vue b/src/components/Form/fields/FieldSelect.vue index 2ee3c650f..8fe4bd1e7 100644 --- a/src/components/Form/fields/FieldSelect.vue +++ b/src/components/Form/fields/FieldSelect.vue @@ -41,6 +41,7 @@ :id="controlId" v-model="currentValue" class="pkpFormField__input pkpFormField--select__input" + :class="inputClasses" :name="localizedName" :aria-describedby="describedByIds" :aria-invalid="errors && errors.length" @@ -78,8 +79,21 @@ export default { props: { /** An optional object containing preset information. When preset information exists, a button will appear in the toolbar. */ options: Array, + /** One of `small`, `normal` or `large`. Default: `normal`. */ + size: { + default: 'normal', + validator: function (value) { + return ['normal', 'large'].indexOf(value) !== -1; + }, + }, }, + computed: { + inputClasses() { + let classes = ['pkpFormField--select__input--size' + this.size]; + return classes; + }, + /** * Get localized set of options * @@ -95,10 +109,14 @@ export default {