Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 0470460

Browse files
committed
Adjusted Select component style & form fluidity
1 parent f7fe380 commit 0470460

File tree

3 files changed

+14
-51
lines changed

3 files changed

+14
-51
lines changed

src/components/ReactSelect/index.jsx

+9-10
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,19 @@ const ReactSelect = (props) => {
1212
const customStyles = {
1313
control: (provided, state) => ({
1414
...provided,
15-
minHeight: "36px",
16-
borderColor: state.isFocused ? "#55a5ff" : provided.borderColor,
15+
minHeight: "40px",
16+
border: "1px solid #aaaaab",
17+
borderColor: state.isFocused ? "#55a5ff" : "#aaaaab",
1718
boxShadow: state.isFocused ? "0 0 2px 1px #cee6ff" : provided.boxShadow
1819
}),
1920
menu: (provided) => ({
2021
...provided,
21-
minHeight: "36px",
22+
minHeight: "40px",
2223
zIndex: 10,
2324
}),
2425
valueContainer: (provided) => ({
2526
...provided,
26-
padding: "1px 6px",
27+
padding: "2px 6px",
2728
}),
2829
input: (provided) => ({
2930
...provided,
@@ -47,14 +48,14 @@ const ReactSelect = (props) => {
4748
...provided,
4849
color: "#AAAAAA",
4950
fontFamily: "Roboto",
50-
fontSize: "16px",
51+
fontSize: "14px",
5152
lineHeight: "22px",
5253
textAlign: "left",
53-
fontWeight: "300"
54+
fontWeight: "400"
5455
}),
5556
multiValue: (provided) => ({
5657
...provided,
57-
margin: "4px 4px",
58+
margin: "3px 3px",
5859
color: "#AAAAAA",
5960
fontFamily: "Roboto",
6061
fontSize: "14px",
@@ -69,9 +70,7 @@ const ReactSelect = (props) => {
6970
<Select
7071
value={props.value}
7172
styles={customStyles}
72-
onChange={(val) => {
73-
props.onChange(val);
74-
}}
73+
onChange={props.onChange}
7574
options={props.options}
7675
styleName={props.error ? "error" : ""}
7776
isMulti={props.isMulti}

src/components/ReactSelect/styles.module.scss

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
border: none !important;
1010
box-shadow: none !important;
1111
transition: none !important;
12+
height: 28px;
1213
}
1314
}
1415

src/components/TCForm/styles.module.scss

+4-41
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@
77
width: 100%;
88

99
.job-form-fields-container {
10-
padding: 40px 19% 20px;
10+
padding: 40px 0px 20px;
1111

1212
.job-form-fields-wrapper{
13+
width: 100%;
1314
max-width: 640px;
15+
margin: 0 auto;
16+
text-align: left;
1417
}
1518

1619
input:not([type="checkbox"]),
@@ -55,44 +58,4 @@
5558

5659
.datepicker-wrapper > div:nth-child(2) > div:nth-child(2) {
5760
z-index: 100;
58-
}
59-
60-
@media (max-width: 1366px) {
61-
.tc-form{
62-
.job-form-fields-container {
63-
padding-left: 15%;
64-
padding-right: 15%;
65-
transition: 300ms;
66-
}
67-
}
68-
}
69-
70-
@media (max-width: 1280px) {
71-
.tc-form{
72-
.job-form-fields-container {
73-
padding-left: 10%;
74-
padding-right: 10%;
75-
transition: 300ms;
76-
}
77-
}
78-
}
79-
80-
@media (max-width: 1020px) {
81-
.tc-form{
82-
.job-form-fields-container {
83-
padding-left: 5%;
84-
padding-right: 5%;
85-
transition: 300ms;
86-
}
87-
}
88-
}
89-
90-
@media (max-width: 854px) {
91-
.tc-form{
92-
.job-form-fields-container {
93-
padding-left: 0;
94-
padding-right: 0;
95-
transition: 300ms;
96-
}
97-
}
9861
}

0 commit comments

Comments
 (0)