fix(09-01): resolve DEBT-01 aria-label inconsistency in FieldRenderer and PasswordField

- Add FieldRenderer.test.tsx: 4 tests verifying both branches use aria-label consistently
- Fix FieldRenderer.tsx text-branch: replace sr-only span with aria-label={} matching select-branch
- Fix PasswordField.tsx tooltip button: same sr-only -> aria-label fix
- Update RemoteConfigStep.test.tsx: add { selector: 'input' } to getByLabelText queries that
  now conflict with tooltip button aria-labels (regression fix)
This commit is contained in:
2026-04-01 09:24:14 +02:00
parent 0c8403dc79
commit 532a994f6b
4 changed files with 97 additions and 20 deletions
+2 -2
View File
@@ -24,10 +24,10 @@ export function PasswordField({ id, label, error, registration, placeholder, hel
<button
type="button"
onClick={() => setShowTooltip(v => !v)}
aria-label={`More info about ${label}`}
className="text-primary hover:text-primary text-xs leading-none"
>
<span className="sr-only">More info about {label}</span>
<span aria-hidden="true"></span>
</button>
)}
</div>