Skip to content

Commit 3fcbdf6

Browse files
satya07sbSatyapriya Bai
and
Satyapriya Bai
authored
[accessibility-3739790-3739677]:[Forms and Validation - Azure Cosmos DB- Data Explorer - New Vertex]: Visual Label is not defined for Key, Value and Type input fields under 'New Vertex' pane. (#2040)
Co-authored-by: Satyapriya Bai <[email protected]>
1 parent 8da0785 commit 3fcbdf6

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

src/Explorer/Graph/NewVertexComponent/NewVertexComponent.less

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
.flex-direction(@direction: row);
1515
padding: 4px 5px;
1616

17-
label {
18-
padding: 0px;
19-
}
20-
2117
.valueCol {
2218
flex-grow: 1;
2319
padding-right: 5px;
@@ -63,6 +59,10 @@
6359
height: 100%;
6460
}
6561

62+
.customTrashIcon {
63+
padding-top: 33px;
64+
}
65+
6666
.rightPaneTrashIconImg {
6767
vertical-align: top;
6868
}

src/Explorer/Graph/NewVertexComponent/NewVertexComponent.tsx

+6-3
Original file line numberDiff line numberDiff line change
@@ -142,22 +142,23 @@ export const NewVertexComponent: FunctionComponent<INewVertexComponentProps> = (
142142
<div className="labelCol">
143143
<TextField
144144
className="edgeInput"
145+
label={index === 0 && "Key"}
145146
type="text"
146147
id="propertyKeyNewVertexPane"
147148
componentRef={input}
148-
aria-required="true"
149+
required
149150
placeholder="Key"
150151
autoComplete="off"
151152
aria-label={`Enter value for propery ${index + 1}`}
152153
value={data.key}
153154
onChange={(event: React.ChangeEvent<HTMLInputElement>) => onKeyChange(event, index)}
154155
/>
155156
</div>
156-
<span className="mandatoryStar">*&nbsp;</span>
157157

158158
<div className="valueCol">
159159
<TextField
160160
className="edgeInput"
161+
label={index === 0 && "Value"}
161162
type="text"
162163
placeholder="Value"
163164
autoComplete="off"
@@ -169,6 +170,8 @@ export const NewVertexComponent: FunctionComponent<INewVertexComponentProps> = (
169170
<div>
170171
<Dropdown
171172
role="combobox"
173+
label={index === 0 && "Type"}
174+
ariaLabel="Type"
172175
placeholder="Select an option"
173176
defaultSelectedKey={data.values[0].type}
174177
style={{ width: 100 }}
@@ -181,7 +184,7 @@ export const NewVertexComponent: FunctionComponent<INewVertexComponentProps> = (
181184
</div>
182185
<div className="actionCol">
183186
<div
184-
className="rightPaneTrashIcon rightPaneBtns"
187+
className={`rightPaneTrashIcon rightPaneBtns ${index === 0 && "customTrashIcon"}`}
185188
tabIndex={0}
186189
role="button"
187190
aria-label={`Delete ${data.key}`}

0 commit comments

Comments
 (0)