File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 export let outerClassName = ' flex flex-1 bg-transparent' ;
1212 export let inputClassName = ' w-full text-sm py-0.5 bg-transparent' ;
1313 export let showButtonClassName = ' pl-1.5 transition bg-transparent' ;
14+ export let screenReader = true ;
1415
1516 let show = false ;
1617 </script >
1718
1819<div class ={outerClassName }>
19- <label class ="sr-only" for ={id }>{placeholder || $i18n .t (' Password' )}</label >
20+ {#if screenReader }
21+ <label class ="sr-only" for ={id }>{placeholder || $i18n .t (' Password' )}</label >
22+ {/if }
2023 <input
2124 {id }
2225 class ={` ${inputClassName } ${show ? ' ' : ' password' } ${($settings ?.highContrastMode ?? false ) ? ' placeholder:text-gray-700 dark:placeholder:text-gray-100' : ' outline-hidden placeholder:text-gray-300 dark:placeholder:text-gray-600' } ` }
Original file line number Diff line number Diff line change 342342 placeholder ={$i18n .t (' Enter Your Password' )}
343343 autocomplete ={mode === ' signup' ? ' new-password' : ' current-password' }
344344 name =" password"
345+ screenReader ={false }
345346 required
346347 />
347348 </div >
You can’t perform that action at this time.
0 commit comments