name the wallet name field for screen readers
What changed, and why it matters
This commit improves accessibility for users who rely on screen readers. It adds an invisible 'Wallet name' label tied to the wallet name text field, so assistive software can announce what the field is for. There is no security bug being fixed here.
No security action needed. Treat as a routine accessibility improvement.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change adds a JavaFX Label with setLabelFor(name), setVisible(false), and setManaged(false) next to the wallet name TextField in WalletNameDialog. This provides an accessible name for the field without altering the visible UI. It is a pure accessibility/usability improvement with no security-relevant code path modified.
Changed components
src/main/java/com/sparrowwallet/sparrow/control/WalletNameDialog.javaInspect captured patch +6 / −1
### src/main/java/com/sparrowwallet/sparrow/control/WalletNameDialog.java
@@ -81,7 +81,12 @@ public WalletNameDialog(String initialName, boolean hasExistingTransactions, Pol
change.setText(change.getText().replaceAll("[\\\\/:*?\"<>|;`]", "_"));
return change;
}));
- content.getChildren().add(name);
+ //The dialog header is the field's only label, so a hidden label names it for screen readers with no visible change
+ Label nameLabel = new Label("Wallet name");
+ nameLabel.setLabelFor(name);
+ nameLabel.setVisible(false);
+ nameLabel.setManaged(false);
+ content.getChildren().addAll(name, nameLabel);
HBox existingBox = new HBox(10);
existingCheck = new CheckBox("Has existing transactions");Why this scored 19/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.