mirror of
https://github.com/logto-io/logto.git
synced 2025-01-27 21:39:16 -05:00
fix(console): protected app form field background should exclude error message (#5379)
This commit is contained in:
parent
d2fc3fd916
commit
265901f1b8
2 changed files with 5 additions and 2 deletions
|
@ -30,6 +30,7 @@ type Props = Omit<HTMLProps<HTMLInputElement>, 'size'> & {
|
||||||
// eslint-disable-next-line react/boolean-prop-naming
|
// eslint-disable-next-line react/boolean-prop-naming
|
||||||
alwaysShowSuffix?: boolean;
|
alwaysShowSuffix?: boolean;
|
||||||
isConfidential?: boolean;
|
isConfidential?: boolean;
|
||||||
|
inputContainerClassName?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
function TextInput(
|
function TextInput(
|
||||||
|
@ -43,6 +44,7 @@ function TextInput(
|
||||||
readOnly,
|
readOnly,
|
||||||
type = 'text',
|
type = 'text',
|
||||||
isConfidential = false,
|
isConfidential = false,
|
||||||
|
inputContainerClassName,
|
||||||
...rest
|
...rest
|
||||||
}: Props,
|
}: Props,
|
||||||
reference: Ref<Nullable<HTMLInputElement>>
|
reference: Ref<Nullable<HTMLInputElement>>
|
||||||
|
@ -96,7 +98,8 @@ function TextInput(
|
||||||
isConfidential && isContentHidden && type === 'text' && styles.hideTextContainerContent,
|
isConfidential && isContentHidden && type === 'text' && styles.hideTextContainerContent,
|
||||||
icon && styles.withIcon,
|
icon && styles.withIcon,
|
||||||
disabled && styles.disabled,
|
disabled && styles.disabled,
|
||||||
readOnly && styles.readOnly
|
readOnly && styles.readOnly,
|
||||||
|
inputContainerClassName
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{icon && <span className={styles.icon}>{icon}</span>}
|
{icon && <span className={styles.icon}>{icon}</span>}
|
||||||
|
|
|
@ -120,7 +120,7 @@ function ProtectedAppForm({
|
||||||
tip={conditional(!hasDetailedInstructions && t('protected_app.form.url_field_tooltip'))}
|
tip={conditional(!hasDetailedInstructions && t('protected_app.form.url_field_tooltip'))}
|
||||||
>
|
>
|
||||||
<TextInput
|
<TextInput
|
||||||
className={styles.input}
|
inputContainerClassName={styles.input}
|
||||||
{...register('origin', {
|
{...register('origin', {
|
||||||
required: true,
|
required: true,
|
||||||
validate: (value) =>
|
validate: (value) =>
|
||||||
|
|
Loading…
Add table
Reference in a new issue