File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,15 +53,16 @@ const AddModal: React.FC<AddModalProps> = ({ setOpen }) => {
5353 < p > Enter the database information used to track the service</ p >
5454 </ div >
5555 < form onSubmit = { handleSubmit } >
56+ < p > Required*</ p >
5657 < div >
57- < label htmlFor = "db-type" > Type</ label >
58+ < label htmlFor = "db-type" > Type< span > * </ span > < /label >
5859 < select id = "db-type" name = "database" value = { database } onChange = { e => handleChange ( e ) } >
5960 < option value = "SQL" > SQL</ option >
6061 < option value = "MongoDB" > MongoDB</ option >
6162 </ select >
6263 </ div >
6364 < div >
64- < label htmlFor = "db-uri" > URI</ label >
65+ < label htmlFor = "db-uri" > URI< span > * </ span > < /label >
6566 < input
6667 id = "db-uri"
6768 name = "URI"
@@ -72,7 +73,7 @@ const AddModal: React.FC<AddModalProps> = ({ setOpen }) => {
7273 />
7374 </ div >
7475 < div >
75- < label htmlFor = "db-name" > Name</ label >
76+ < label htmlFor = "db-name" > Name< span > * </ span > < /label >
7677 < input
7778 id = "db-name"
7879 type = "text"
Original file line number Diff line number Diff line change 2121 /* Form */
2222 form {
2323 @include centerWithFlex ($direction : column );
24- padding : 0 30px ;
24+ padding : 20 px 30px ;
2525 width : 100% ;
2626
27+ p ,
28+ span {
29+ color : rgb (211 , 0 , 0 );
30+ }
31+
32+ span {
33+ font-weight : 300 ;
34+ font-size : 80% ;
35+ }
36+
37+ p {
38+ align-self : flex-start ;
39+ }
40+
2741 div {
2842 @include centerWithFlex ();
2943
5064 flex : 1 ;
5165 border-radius : 3px ;
5266 }
53-
67+
5468 // Select field
5569 select {
5670 cursor : pointer ;
8498
8599 /* Submit button */
86100 button {
101+ height : 40px ;
87102 font-size : 115% ;
88103 width : 50% ;
89104 color : #fff ;
You can’t perform that action at this time.
0 commit comments