Skip to content

Commit a114373

Browse files
committed
Re-added aria-label
1 parent b5e59ea commit a114373

2 files changed

Lines changed: 78 additions & 25 deletions

File tree

src/manage/webviews/html/importEnv.html

Lines changed: 38 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,42 +9,67 @@
99
</head>
1010
<body>
1111
<div class="modal">
12-
<h2>Create Environment in Project</h2>
12+
<h2>Import Environment to Project</h2>
1313

1414
<!-- Project Path -->
15-
<label>Project Path:</label>
15+
<label for="projectPath">Project Path:</label>
1616
<div class="single-input-container">
17-
<select id="projectPath"></select>
17+
<select id="projectPath" aria-label="Project Path"></select>
1818
</div>
1919

2020
<!-- Env File -->
21-
<label>Env File:</label>
21+
<label for="envFileInput">Env File:</label>
2222
<div class="single-input-container">
23-
<input aria-label="envFileInput" type="text" id="envFileInput" placeholder="Select Env File" />
24-
<button type="button" class="select-button" id="btnSelectEnv">Select</button>
23+
<input
24+
type="text"
25+
id="envFileInput"
26+
placeholder="Select Env File"
27+
aria-label="Environment File Path"
28+
/>
29+
<button
30+
type="button"
31+
class="select-button"
32+
id="btnSelectEnv"
33+
aria-label="Select Environment File"
34+
>Select</button>
2535
</div>
2636

2737
<!-- Compiler/Testsuite Labels -->
28-
<div class="label-row">
38+
<div class="label-row" aria-label="Compiler and Testsuite Labels">
2939
<div>Select Compiler</div>
3040
<div>Select Testsuite</div>
3141
<div></div>
3242
</div>
3343

3444
<!-- Compiler/Testsuite Rows -->
35-
<div id="compilerContainer"></div>
45+
<div id="compilerContainer" aria-label="Compiler and Testsuite Container"></div>
3646
<div class="double-add-row">
37-
<button type="button" class="add-button" id="btnAddRow"></button>
47+
<button
48+
type="button"
49+
class="add-button"
50+
id="btnAddRow"
51+
aria-label="Add Compiler and Testsuite Row"
52+
></button>
3853
</div>
3954

40-
<!-- OK/Cancel Buttons -->
55+
<!-- OK / Cancel -->
4156
<div class="button-container">
42-
<button type="button" class="cancel-button" id="btnCancel">Cancel</button>
43-
<button type="button" class="primary-button" id="btnSubmit">OK</button>
57+
<button
58+
type="button"
59+
class="cancel-button"
60+
id="btnCancel"
61+
aria-label="Cancel"
62+
>Cancel</button>
63+
<button
64+
type="button"
65+
class="primary-button"
66+
id="btnSubmit"
67+
aria-label="OK"
68+
>OK</button>
4469
</div>
4570
</div>
4671

47-
<!-- replaced at runtime (with nonce) -->
72+
<!-- replaced at runtime with a nonce attribute -->
4873
<script src="{{ scriptUri }}"></script>
4974
</body>
5075
</html>

src/manage/webviews/html/newEnvProject.html

Lines changed: 40 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,60 @@
1212
<div class="modal">
1313
<h2>Create Environment in Project</h2>
1414

15-
<label>Project Path:</label>
15+
<!-- Project Path -->
16+
<label for="projectPath">Project Path:</label>
1617
<div class="single-input-container">
17-
<select id="projectPath"></select>
18+
<select id="projectPath" aria-label="Project Path"></select>
1819
</div>
1920

20-
<label>Source Files:</label>
21-
<div id="sourceFilesContainer"></div>
21+
<!-- Source Files -->
22+
<label for="sourceFilesContainer">Source Files:</label>
23+
<div id="sourceFilesContainer" aria-label="Source Files Container"></div>
2224
<div class="single-add-row">
23-
<button type="button" class="add-button" id="btnAddSource"></button>
25+
<button
26+
type="button"
27+
class="add-button"
28+
id="btnAddSource"
29+
aria-label="Add Source File"
30+
></button>
2431
</div>
2532

26-
<div class="label-row">
27-
<div>Select Compiler</div><div>Select Testsuite</div><div></div>
33+
<!-- Compiler/Testsuite Labels -->
34+
<div class="label-row" aria-label="Compiler and Testsuite Labels">
35+
<div>Select Compiler</div>
36+
<div>Select Testsuite</div>
37+
<div></div>
2838
</div>
29-
<div id="compilerContainer"></div>
39+
40+
<!-- Compiler/Testsuite Rows -->
41+
<div id="compilerContainer" aria-label="Compiler and Testsuite Container"></div>
3042
<div class="double-add-row">
31-
<button type="button" class="add-button" id="btnAddCompiler"></button>
43+
<button
44+
type="button"
45+
class="add-button"
46+
id="btnAddCompiler"
47+
aria-label="Add Compiler and Testsuite Row"
48+
></button>
3249
</div>
3350

51+
<!-- OK / Cancel -->
3452
<div class="button-container">
35-
<button type="button" class="cancel-button" id="btnCancel">Cancel</button>
36-
<button type="button" class="primary-button" id="btnSubmit">OK</button>
53+
<button
54+
type="button"
55+
class="cancel-button"
56+
id="btnCancel"
57+
aria-label="Cancel"
58+
>Cancel</button>
59+
<button
60+
type="button"
61+
class="primary-button"
62+
id="btnSubmit"
63+
aria-label="OK"
64+
>OK</button>
3765
</div>
3866
</div>
3967

40-
<!-- replaced at runtime with nonce -->
68+
<!-- replaced at runtime with a nonce attribute -->
4169
<script src="{{ scriptUri }}"></script>
4270
</body>
4371
</html>

0 commit comments

Comments
 (0)