From a0c58cfb86df170821b44410f9a43ee9b72f15f3 Mon Sep 17 00:00:00 2001 From: Vit Rozkovec Date: Tue, 5 Dec 2023 08:37:28 +0100 Subject: [PATCH] Replace .sr-only with .visually-hidden, use static Helper.screenReaderOnly class where applicable, fix SpinnerAjax(Button|Link) label rendering (#1010) * Only add class .sr-only when the label is empty - check in onConfigure * Update helper class name for screenReaderOnly content * Replace .sr-only -> .visually-hidden, use static Helper where applicable * rename all references from "srOnly" to "visuallyHidden" for consistency --- .../html/bootstrap/button/dropdown/SplitButton.html | 2 +- .../html/bootstrap/components/progress/Stack.html | 2 +- .../html/bootstrap/components/progress/Stack.java | 11 +++++++---- .../agilecoders/wicket/core/util/CssClassNames.java | 2 +- .../components/progress/ProgressBarTest.java | 3 ++- .../html/bootstrap/spinner/SpinnerAjaxButton.java | 9 +++++---- .../html/bootstrap/spinner/SpinnerAjaxLink.java | 11 +++++++++-- .../de/agilecoders/wicket/samples/pages/BasePage.html | 2 +- .../wicket/samples/pages/ComponentsPage.html | 4 ++-- .../agilecoders/wicket/samples/pages/SelectPage.html | 2 +- 10 files changed, 30 insertions(+), 18 deletions(-) diff --git a/bootstrap-core/src/main/java/de/agilecoders/wicket/core/markup/html/bootstrap/button/dropdown/SplitButton.html b/bootstrap-core/src/main/java/de/agilecoders/wicket/core/markup/html/bootstrap/button/dropdown/SplitButton.html index a3ee6ee99..aba0800b9 100644 --- a/bootstrap-core/src/main/java/de/agilecoders/wicket/core/markup/html/bootstrap/button/dropdown/SplitButton.html +++ b/bootstrap-core/src/main/java/de/agilecoders/wicket/core/markup/html/bootstrap/button/dropdown/SplitButton.html @@ -7,7 +7,7 @@ diff --git a/bootstrap-samples/src/main/java/de/agilecoders/wicket/samples/pages/SelectPage.html b/bootstrap-samples/src/main/java/de/agilecoders/wicket/samples/pages/SelectPage.html index 3b571ecf0..2b357fcd6 100644 --- a/bootstrap-samples/src/main/java/de/agilecoders/wicket/samples/pages/SelectPage.html +++ b/bootstrap-samples/src/main/java/de/agilecoders/wicket/samples/pages/SelectPage.html @@ -82,7 +82,7 @@

Example