mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
refactor(ui): remove unused style settings (#4464)
remove unused isSuffixVisible style settings
This commit is contained in:
parent
1863c2f817
commit
545b919074
2 changed files with 2 additions and 14 deletions
|
@ -56,7 +56,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
&.isSuffixVisible,
|
||||
&.isSuffixFocusVisible:focus-within {
|
||||
input {
|
||||
padding-right: _.unit(10);
|
||||
|
|
|
@ -12,21 +12,11 @@ export type Props = Omit<HTMLProps<HTMLInputElement>, 'prefix'> & {
|
|||
isDanger?: boolean;
|
||||
prefix?: ReactElement;
|
||||
suffix?: ReactElement;
|
||||
isSuffixVisible?: boolean;
|
||||
isSuffixFocusVisible?: boolean;
|
||||
};
|
||||
|
||||
const InputField = (
|
||||
{
|
||||
className,
|
||||
errorMessage,
|
||||
isDanger,
|
||||
prefix,
|
||||
suffix,
|
||||
isSuffixFocusVisible,
|
||||
isSuffixVisible,
|
||||
...props
|
||||
}: Props,
|
||||
{ className, errorMessage, isDanger, prefix, suffix, isSuffixFocusVisible, ...props }: Props,
|
||||
reference: ForwardedRef<HTMLInputElement>
|
||||
) => {
|
||||
const errorMessages = errorMessage?.split('\n');
|
||||
|
@ -37,8 +27,7 @@ const InputField = (
|
|||
className={classNames(
|
||||
styles.inputField,
|
||||
isDanger && styles.danger,
|
||||
isSuffixFocusVisible && styles.isSuffixFocusVisible,
|
||||
isSuffixVisible && styles.isSuffixVisible
|
||||
isSuffixFocusVisible && styles.isSuffixFocusVisible
|
||||
)}
|
||||
>
|
||||
{prefix}
|
||||
|
|
Loading…
Reference in a new issue