fix(api-settings): add aria-label for token visibility toggle button

This commit is contained in:
Haileyesus
2026-02-23 11:42:41 +03:00
parent cc9ad433f2
commit 28950a5b24

View File

@@ -75,6 +75,7 @@ export default function GithubCredentialsSection({
<button <button
type="button" type="button"
onClick={onToggleNewTokenVisibility} onClick={onToggleNewTokenVisibility}
aria-label={showNewTokenPlainText ? 'Hide token' : 'Show token'}
className="absolute right-3 top-2.5 text-muted-foreground hover:text-foreground" className="absolute right-3 top-2.5 text-muted-foreground hover:text-foreground"
> >
{showNewTokenPlainText ? <EyeOff className="h-4 w-4" /> : <Eye className="h-4 w-4" />} {showNewTokenPlainText ? <EyeOff className="h-4 w-4" /> : <Eye className="h-4 w-4" />}