- extend field class instead
This commit is contained in:
1 parent
a0694d4f4a
commit
3053d632c6
2 files changed
+5
-8
No files matched your search
@@ -2,12 +2,9 @@
|
|||||||
min-width: var(--env-var-width-3);
|
min-width: var(--env-var-width-3);
|
||||||
}
|
}
|
||||||
|
|
||||||
.field-infrastructure-alert {
|
.field-infrastructure-alert{
|
||||||
max-width: var(--env-var-width-4);
|
max-width: var(--env-var-width-4);
|
||||||
}
|
min-width: unset;
|
||||||
|
|
||||||
.field-infrastructure-alert .MuiInputBase-root:has(input) {
|
|
||||||
height: var(--env-var-height-2);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.field h3.MuiTypography-root,
|
.field h3.MuiTypography-root,
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ const Field = forwardRef(
|
|||||||
return (
|
return (
|
||||||
<Stack
|
<Stack
|
||||||
gap={theme.spacing(2)}
|
gap={theme.spacing(2)}
|
||||||
className={`${className ?? `field field-${type}`}`}
|
className={`field field-${type} ${className}`}
|
||||||
sx={{
|
sx={{
|
||||||
"& fieldset": {
|
"& fieldset": {
|
||||||
borderColor: theme.palette.border.dark,
|
borderColor: theme.palette.border.dark,
|
||||||
@@ -186,11 +186,11 @@ const Field = forwardRef(
|
|||||||
),
|
),
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
{ error && (
|
{error && (
|
||||||
<Typography
|
<Typography
|
||||||
component="span"
|
component="span"
|
||||||
className="input-error"
|
className="input-error"
|
||||||
hidden={className? true: false}
|
hidden={className ? true : false}
|
||||||
color={theme.palette.error.main}
|
color={theme.palette.error.main}
|
||||||
mt={theme.spacing(2)}
|
mt={theme.spacing(2)}
|
||||||
sx={{
|
sx={{
|
||||||
|
|||||||
Reference in new issue
Block a user