Skip to content

Commit 455f8fb

Browse files
committed
create regular input field component
1 parent 0b42220 commit 455f8fb

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

src/components/settings/Settings.styles.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ import styled from 'styled-components';
22
import { Input } from 'antd';
33

44
export const InputField = styled(Input)`
5+
border-radius: 7px !important;
6+
padding: 0.5rem !important;
7+
&:focus{
8+
border-color: var(--ant-primary-5) !important;
9+
box-shadow: 0 0 0 2px var(--ant-primary-color-outline) !important;
10+
}
11+
`;
12+
513
export const InputFieldWithPrefix = styled(Input)`
614
&.ant-input-affix-wrapper {
715
padding: 0 !important;

src/components/settings/SettingsPage.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,8 @@ const SettingsWrapper = styled.div`
122122
}
123123
124124
.ant-input, .ant-input-number, .ant-select-selector {
125-
background-color: rgba(0, 0, 0, 0.2) !important;
126-
border: 1px solid rgba(255, 255, 255, 0.1) !important;
127-
border-radius: 4px !important;
125+
background-color: var(--input-bg-color) !important;
126+
border: 1px solid var(--border-base-color) !important;
128127
}
129128
`;
130129

0 commit comments

Comments
 (0)