fix: improve form accessibility with proper label associations
Added missing htmlFor attributes to labels and corresponding IDs to form elements throughout the web UI to enhance accessibility. This ensures screen readers can correctly identify form controls and improves browser autofill functionality. Changes include: - Fixed label associations in login form - Added proper IDs to form elements in Settings component - Replaced decorative labels with semantic headings in PropertiesView - Added screen reader accessible labels in RetrievalTesting - Improved checkbox accessibility in QuerySettings
This commit is contained in:
@@ -507,8 +507,14 @@ export default function DocumentManager() {
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex items-center gap-2">
|
||||
<span className="text-sm text-gray-500">{t('documentPanel.documentManager.fileNameLabel')}</span>
|
||||
<label
|
||||
htmlFor="toggle-filename-btn"
|
||||
className="text-sm text-gray-500"
|
||||
>
|
||||
{t('documentPanel.documentManager.fileNameLabel')}
|
||||
</label>
|
||||
<Button
|
||||
id="toggle-filename-btn"
|
||||
variant="outline"
|
||||
size="sm"
|
||||
onClick={() => setShowFileName(!showFileName)}
|
||||
|
Reference in New Issue
Block a user