Some of the inconsistencies are fixed
This commit is contained in:
1 parent
68c74de1e4
commit
136a1bc9af
4 files changed
+42
-26
No files matched your search
@@ -20,32 +20,35 @@ function EmailTextField({
|
|||||||
const handleMouseLeave = () => setShowIcon(false);
|
const handleMouseLeave = () => setShowIcon(false);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="email-text-field">
|
<>
|
||||||
<TextField
|
<div className="email-text-field-title">Email</div>
|
||||||
error={error}
|
<div className="email-text-field">
|
||||||
className="email-text-field-input"
|
<TextField
|
||||||
id={id}
|
error={error}
|
||||||
label={label}
|
className="email-text-field-input"
|
||||||
variant={variant}
|
id={id}
|
||||||
placeholder={placeholder}
|
label={label}
|
||||||
InputProps={{
|
variant={variant}
|
||||||
endAdornment: (
|
placeholder={placeholder}
|
||||||
<InputAdornment position="end">
|
InputProps={{
|
||||||
{error && showIcon && (
|
endAdornment: (
|
||||||
<ErrorOutlineIcon style={{ fill: "red" }} />
|
<InputAdornment position="end">
|
||||||
)}
|
{error && showIcon && (
|
||||||
{error && !showIcon && (
|
<ErrorOutlineIcon style={{ fill: "red" }} />
|
||||||
<ErrorOutlineIcon style={{ fill: "red" }} />
|
)}
|
||||||
)}
|
{error && !showIcon && (
|
||||||
{!error && showIcon && <HelpOutlineIcon />}
|
<ErrorOutlineIcon style={{ fill: "red" }} />
|
||||||
</InputAdornment>
|
)}
|
||||||
),
|
{!error && showIcon && <HelpOutlineIcon />}
|
||||||
}}
|
</InputAdornment>
|
||||||
helperText={helperText}
|
),
|
||||||
onMouseEnter={handleMouseEnter}
|
}}
|
||||||
onMouseLeave={handleMouseLeave}
|
helperText={helperText}
|
||||||
/>
|
onMouseEnter={handleMouseEnter}
|
||||||
</div>
|
onMouseLeave={handleMouseLeave}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,3 +7,9 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
margin: 10px 20px;
|
margin: 10px 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.email-text-field-title {
|
||||||
|
font-family: "Roboto", "Helvetica", "Arial", sans-serif;
|
||||||
|
margin: 0 20px;
|
||||||
|
margin-top: 30px;
|
||||||
|
}
|
||||||
@@ -17,6 +17,7 @@ function WebsiteTextField({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
<div className="website-textfield-title">Website</div>
|
||||||
<div className="website-textfield">
|
<div className="website-textfield">
|
||||||
<label className="website-label" htmlFor="website">
|
<label className="website-label" htmlFor="website">
|
||||||
http://
|
http://
|
||||||
|
|||||||
@@ -7,6 +7,12 @@
|
|||||||
--font-family: "Roboto", "Helvetica", "Arial", sans-serif;
|
--font-family: "Roboto", "Helvetica", "Arial", sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.website-textfield-title {
|
||||||
|
font-family: "Roboto", "Helvetica", "Arial", sans-serif;
|
||||||
|
margin: 0 20px;
|
||||||
|
margin-top: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
.website-textfield {
|
.website-textfield {
|
||||||
font-family: var(--font-family);
|
font-family: var(--font-family);
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
Reference in new issue
Block a user