Merge pull request #120 from DeimosPr4/114-inputs-de-teléfonos-no-pueden-ser-numéricos

arreglar tipo de input de número telefónico
This commit is contained in:
Eduardo Quiros 2022-07-22 02:18:27 -06:00 committed by GitHub
commit 6ee627229e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}

View File

@ -93,7 +93,7 @@ const AdministradoresSistema = () => {
</div> </div>
<div className="field col-12"> <div className="field col-12">
<label htmlFor="telefono">Teléfono</label> <label htmlFor="telefono">Teléfono</label>
<InputText id="telefono" type="number" rows="4" /> <InputText type="tel" id="telefono" pattern="[0-9]{8}"/>
</div> </div>
<Button label="Registrar" onClick={registrarAdmin}></Button> <Button label="Registrar" onClick={registrarAdmin}></Button>
</div> </div>

View File

@ -0,0 +1,10 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./src/**/*.{js,jsx,ts,tsx}",
],
theme: {
extend: {},
},
plugins: [],
}