Client - fix password input

This commit is contained in:
Sam 2022-03-13 17:51:05 +01:00
parent 6371fb0622
commit dfe50b5287
2 changed files with 10 additions and 4 deletions

View File

@ -1,7 +1,7 @@
<template>
<div class="password-input">
<input
id="password"
:id="id"
:disabled="disabled"
:placeholder="placeholder"
:required="required"
@ -35,6 +35,7 @@
interface Props {
checkStrength?: boolean
disabled?: boolean
id?: string
password?: string
placeholder?: string
required?: boolean
@ -43,10 +44,11 @@
const props = withDefaults(defineProps<Props>(), {
checkStrength: false,
disabled: false,
id: 'password',
password: '',
required: false,
})
const { checkStrength, disabled, password, placeholder, required } =
const { checkStrength, disabled, id, password, placeholder, required } =
toRefs(props)
const showPassword: Ref<boolean> = ref(false)

View File

@ -136,10 +136,14 @@
.password-slider::-webkit-slider-thumb,
.password-slider::-moz-range-thumb {
-webkit-appearance: none;
appearance: none;
opacity: 0;
}
.password-slider::-webkit-slider-thumb {
-webkit-appearance: none;
}
.password-slider::-moz-range-thumb {
appearance: none;
}
.password-strength-details {
margin-bottom: $default-margin * 0.5;