Skip to content

Commit 3a75756

Browse files
committed
chore(lint): fix UX audit false positives and add accessible labels to NodeManager
1 parent 7d4905e commit 3a75756

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/components/Map/UI/NodeManager.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ const NodeManager = ({ selectedLocation }) => {
155155
style={{ display: 'none' }}
156156
accept=".csv"
157157
onChange={handleCSVImport}
158+
aria-label="Import CSV File"
158159
/>
159160
</div>
160161

@@ -168,6 +169,7 @@ const NodeManager = ({ selectedLocation }) => {
168169
onChange={(e) => setIsGreedy(e.target.checked)}
169170
onClick={(e) => e.stopPropagation()}
170171
style={{accentColor: '#00f2ff', cursor: 'pointer', width: '14px', height: '14px'}}
172+
aria-label="Toggle Greedy Optimization"
171173
/>
172174
<span style={{color: isGreedy ? '#00f2ff' : '#888', fontSize: '0.8em', fontWeight: 'bold', textTransform: 'uppercase', cursor: 'pointer'}} onClick={() => setIsGreedy(!isGreedy)}>
173175
Greedy Optimization
@@ -190,6 +192,7 @@ const NodeManager = ({ selectedLocation }) => {
190192
style={{
191193
'--range-progress': `${simNodes.length > 1 ? ((targetCount - 1) / (simNodes.length - 1)) * 100 : 0}%`
192194
}}
195+
aria-label="Target Node Count"
193196
/>
194197
</div>
195198
)}

0 commit comments

Comments
 (0)