From 0e763c0ac30add8935f90144c84544ba7020718c Mon Sep 17 00:00:00 2001 From: Brandon Tripp Date: Mon, 5 Apr 2021 11:54:28 -0600 Subject: [PATCH] Login Form updated to use ShowPassword component. --- webapp/components/LoginForm/LoginForm.vue | 35 ++++------------------- 1 file changed, 5 insertions(+), 30 deletions(-) diff --git a/webapp/components/LoginForm/LoginForm.vue b/webapp/components/LoginForm/LoginForm.vue index 01c3c8661..ec9dbebf8 100644 --- a/webapp/components/LoginForm/LoginForm.vue +++ b/webapp/components/LoginForm/LoginForm.vue @@ -31,11 +31,7 @@ ref="password" :type="showPassword ? 'text' : 'password'" /> - - - - - + {{ $t('login.forgotPassword') }} @@ -59,10 +55,12 @@ import LocaleSwitch from '~/components/LocaleSwitch/LocaleSwitch' import links from '~/constants/links.js' import metadata from '~/constants/metadata.js' +import ShowPassword from '../ShowPassword/ShowPassword.vue' export default { components: { LocaleSwitch, + ShowPassword }, data() { return { @@ -98,9 +96,8 @@ export default { } } }, - toggleShowPassword(event) { + toggleShowPassword() { this.showPassword = !this.showPassword - event.preventDefault() this.$nextTick(() => { this.$refs.password.$el.children[1].children[1].focus() this.$emit('focus') @@ -114,7 +111,7 @@ export default { .login-form { width: 80vw; max-width: 620px; - margin: auto; + /* margin: auto; */ .base-button { display: block; @@ -145,28 +142,6 @@ export default { outline: none; transition: all $duration-short $ease-out; - .icon-wrapper { - margin-right: 2px; - } - - .click-wrapper { - padding: 8px; - align-content: center; - color: $text-color-disabled; - cursor: pointer; - } - - .click-wrapper:hover { - &:focus-within { - background-color: $background-color-base; - border: $input-border-size solid $border-color-active; - - .toggle-icon { - color: $text-color-base; - } - } - } - &:focus-within { background-color: $background-color-base; border: $input-border-size solid $border-color-active;