mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2026-08-10 08:37:05 +00:00
add accessible text to improve screen reader navigation
This commit is contained in:
@@ -21,7 +21,7 @@ public class WelcomeDialog extends Dialog<Mode> {
|
||||
welcomeController.initializeView();
|
||||
|
||||
dialogPane.setPrefWidth(600);
|
||||
dialogPane.setPrefHeight(520);
|
||||
dialogPane.setPrefHeight(540);
|
||||
dialogPane.setMinHeight(dialogPane.getPrefHeight());
|
||||
AppServices.moveToActiveWindowScreen(this);
|
||||
|
||||
|
||||
@@ -321,6 +321,7 @@ public class MnemonicKeystorePane extends TitledDescriptionPane {
|
||||
}
|
||||
};
|
||||
wordField.setMaxWidth(100);
|
||||
wordField.setAccessibleText("Word " + (wordNumber + 1));
|
||||
TextFormatter<?> formatter = new TextFormatter<>((TextFormatter.Change change) -> {
|
||||
String text = change.getText();
|
||||
// if text was added, fix the text to fit the requirements
|
||||
|
||||
@@ -25,6 +25,7 @@ public class TitledDescriptionPane extends TitledPane {
|
||||
public TitledDescriptionPane(String title, String description, String content, WalletModel walletModel) {
|
||||
getStylesheets().add(AppServices.class.getResource("general.css").toExternalForm());
|
||||
getStyleClass().add("titled-description-pane");
|
||||
setAccessibleText(title);
|
||||
|
||||
setPadding(Insets.EMPTY);
|
||||
setGraphic(getTitle(title, description, walletModel));
|
||||
|
||||
Reference in New Issue
Block a user