📋 Forms (#16)

* chore: add url type on input and enable autocomplete

* style: fix textarea and date picker font bug
This commit is contained in:
Ruidy 2020-06-04 08:09:00 +02:00 committed by GitHub
parent 0ca1b71fdc
commit 719455da07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 12 additions and 12 deletions

View file

@ -24,7 +24,7 @@ const AddEducationForm: FC<IProps> = ({
handleCheckboxesChange,
isDisabled,
}) => (
<form className="form" onSubmit={handleSubmit}>
<form className="form" onSubmit={handleSubmit} autoComplete="on">
<div className="form-group">
<input
type="text"

View file

@ -24,7 +24,7 @@ const AddExperienceForm: FC<IProps> = ({
handleCheckboxesChange,
isDisabled,
}) => (
<form className="form" onSubmit={handleSubmit}>
<form className="form" onSubmit={handleSubmit} autoComplete="on">
<div className="form-group">
<input
type="text"

View file

@ -35,7 +35,7 @@ const EditProfileForm: FC<IProps> = ({
isDisabled,
toggleSocialLinks,
}) => (
<form className="form" onSubmit={handleSubmit}>
<form className="form" onSubmit={handleSubmit} autoComplete="on">
<div className="form-group">
<select
name="status"
@ -60,7 +60,6 @@ const EditProfileForm: FC<IProps> = ({
placeholder="Company"
name="company"
value={formData.company}
// value={variable}
onChange={handleChange}
/>
<small className="form-text">
@ -69,7 +68,7 @@ const EditProfileForm: FC<IProps> = ({
</div>
<div className="form-group">
<input
type="text"
type="url"
placeholder="Website"
name="website"
value={formData.website}
@ -142,7 +141,7 @@ const EditProfileForm: FC<IProps> = ({
<div className="form-group social-input">
<FontAwesomeIcon icon={faFacebook} size="2x" />
<input
type="text"
type="url"
placeholder="Facebook URL"
name="facebook"
value={formData.facebook}
@ -153,7 +152,7 @@ const EditProfileForm: FC<IProps> = ({
<div className="form-group social-input">
<FontAwesomeIcon icon={faInstagram} size="2x" />
<input
type="text"
type="url"
placeholder="Instagram URL"
name="instagram"
value={formData.instagram}
@ -164,7 +163,7 @@ const EditProfileForm: FC<IProps> = ({
<div className="form-group social-input">
<FontAwesomeIcon icon={faLinkedin} size="2x" />
<input
type="text"
type="url"
placeholder="Linkedin URL"
name="linkedin"
value={formData.linkedin}
@ -175,7 +174,7 @@ const EditProfileForm: FC<IProps> = ({
<div className="form-group social-input">
<FontAwesomeIcon icon={faTwitter} size="2x" />
<input
type="text"
type="url"
placeholder="Twitter URL"
name="twitter"
value={formData.twitter}
@ -186,7 +185,7 @@ const EditProfileForm: FC<IProps> = ({
<div className="form-group social-input">
<FontAwesomeIcon icon={faYoutube} size="2x" />
<input
type="text"
type="url"
placeholder="YouTube URL"
name="youtube"
value={formData.youtube}

File diff suppressed because one or more lines are too long

View file

@ -11,6 +11,7 @@
input[type='email'],
input[type='password'],
input[type='date'],
input[type='url'],
select,
textarea {
display: block;

View file

@ -7,10 +7,10 @@
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Raleway', sans-serif;
}
body {
font-family: 'Raleway', sans-serif;
font-size: 1rem;
line-height: 1.6;
background-color: white;