File tree 2 files changed +10
-7
lines changed
src/Explorer/Graph/NewVertexComponent
2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 14
14
.flex-direction (@direction : row );
15
15
padding : 4px 5px ;
16
16
17
- label {
18
- padding : 0px ;
19
- }
20
-
21
17
.valueCol {
22
18
flex-grow : 1 ;
23
19
padding-right : 5px ;
63
59
height : 100% ;
64
60
}
65
61
62
+ .customTrashIcon {
63
+ padding-top : 33px ;
64
+ }
65
+
66
66
.rightPaneTrashIconImg {
67
67
vertical-align : top ;
68
68
}
Original file line number Diff line number Diff line change @@ -142,22 +142,23 @@ export const NewVertexComponent: FunctionComponent<INewVertexComponentProps> = (
142
142
< div className = "labelCol" >
143
143
< TextField
144
144
className = "edgeInput"
145
+ label = { index === 0 && "Key" }
145
146
type = "text"
146
147
id = "propertyKeyNewVertexPane"
147
148
componentRef = { input }
148
- aria- required= "true"
149
+ required
149
150
placeholder = "Key"
150
151
autoComplete = "off"
151
152
aria-label = { `Enter value for propery ${ index + 1 } ` }
152
153
value = { data . key }
153
154
onChange = { ( event : React . ChangeEvent < HTMLInputElement > ) => onKeyChange ( event , index ) }
154
155
/>
155
156
</ div >
156
- < span className = "mandatoryStar" > * </ span >
157
157
158
158
< div className = "valueCol" >
159
159
< TextField
160
160
className = "edgeInput"
161
+ label = { index === 0 && "Value" }
161
162
type = "text"
162
163
placeholder = "Value"
163
164
autoComplete = "off"
@@ -169,6 +170,8 @@ export const NewVertexComponent: FunctionComponent<INewVertexComponentProps> = (
169
170
< div >
170
171
< Dropdown
171
172
role = "combobox"
173
+ label = { index === 0 && "Type" }
174
+ ariaLabel = "Type"
172
175
placeholder = "Select an option"
173
176
defaultSelectedKey = { data . values [ 0 ] . type }
174
177
style = { { width : 100 } }
@@ -181,7 +184,7 @@ export const NewVertexComponent: FunctionComponent<INewVertexComponentProps> = (
181
184
</ div >
182
185
< div className = "actionCol" >
183
186
< div
184
- className = " rightPaneTrashIcon rightPaneBtns"
187
+ className = { ` rightPaneTrashIcon rightPaneBtns ${ index === 0 && "customTrashIcon" } ` }
185
188
tabIndex = { 0 }
186
189
role = "button"
187
190
aria-label = { `Delete ${ data . key } ` }
You can’t perform that action at this time.
0 commit comments