fix: input style priority (#5383)

This commit is contained in:
Joooye_34
2023-12-22 15:48:28 +08:00
committed by GitHub
parent f11ea7570a
commit 46f824c4e9
8 changed files with 4 additions and 26 deletions

View File

@@ -1,6 +0,0 @@
import { style } from '@vanilla-extract/css';
export const input = style({
height: '34px',
width: '220px',
});

View File

@@ -2,7 +2,6 @@ import { useCallback, useState } from 'react';
import Input from '../../ui/input';
import { Menu } from '../../ui/menu';
import * as styles from './index.css';
export const RenameModal = ({
onRename,
@@ -33,12 +32,12 @@ export const RenameModal = ({
}}
items={
<Input
className={styles.input}
autoFocus
defaultValue={value}
onChange={setValue}
onEnter={handleRename}
data-testid="rename-modal-input"
style={{ width: 220, height: 34 }}
/>
}
>