diff --git a/pages/login.vue b/pages/login.vue index 44a9108c8..83818a837 100644 --- a/pages/login.vue +++ b/pages/login.vue @@ -37,6 +37,7 @@ v-model="form.email" placeholder="Deine E-Mail" type="email" + name="email" icon="envelope"/> + full-width + name="submit" + type="submit"> Anmelden diff --git a/styleguide/src/system/components/data-input/Input/Input.vue b/styleguide/src/system/components/data-input/Input/Input.vue index a955dd0f4..6d19c3956 100644 --- a/styleguide/src/system/components/data-input/Input/Input.vue +++ b/styleguide/src/system/components/data-input/Input/Input.vue @@ -13,7 +13,7 @@ iconRight && `ds-input-has-icon-right` ]" :id="id" - :name="model" + :name="name" :type="type" :autofocus="autofocus" :placeholder="placeholder" @@ -63,6 +63,13 @@ export default { type: String, default: null }, + /** + * The name of the field for better accessibility + */ + name: { + type: String, + default: null + }, /** * Whether the input should be automatically focused */ diff --git a/styleguide/src/system/components/navigation/Button/Button.vue b/styleguide/src/system/components/navigation/Button/Button.vue index 208e3269d..d806a9d6e 100644 --- a/styleguide/src/system/components/navigation/Button/Button.vue +++ b/styleguide/src/system/components/navigation/Button/Button.vue @@ -13,6 +13,7 @@ fullWidth && `ds-button-full-width`, loading && `ds-button-loading` ]" + :name="name" v-bind="bindings" :is="linkTag">