From afddd6ec3280e145b70381dcac2b92e94cf342a1 Mon Sep 17 00:00:00 2001 From: mcarare Date: Tue, 21 Dec 2021 18:19:18 +0200 Subject: [PATCH] [fenix] For https://github.com/mozilla-mobile/fenix/issues/22415: Remove element type from content descriptions. Adding the type to content description is not advised according to a11y guidelines. --- app/src/main/res/layout/recent_bookmarks_header.xml | 2 +- app/src/main/res/layout/recent_tabs_header.xml | 2 +- app/src/main/res/layout/recent_visits_header.xml | 2 +- app/src/main/res/values/strings.xml | 12 +++++++++--- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/app/src/main/res/layout/recent_bookmarks_header.xml b/app/src/main/res/layout/recent_bookmarks_header.xml index 6e2fd2c432..47acefde75 100644 --- a/app/src/main/res/layout/recent_bookmarks_header.xml +++ b/app/src/main/res/layout/recent_bookmarks_header.xml @@ -31,7 +31,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="?android:attr/selectableItemBackground" - android:contentDescription="@string/recently_saved_show_all_content_description" + android:contentDescription="@string/recently_saved_show_all_content_description_2" android:insetTop="0dp" android:paddingStart="16dp" android:paddingEnd="0dp" diff --git a/app/src/main/res/layout/recent_tabs_header.xml b/app/src/main/res/layout/recent_tabs_header.xml index dcfff431af..64afb4ef0e 100644 --- a/app/src/main/res/layout/recent_tabs_header.xml +++ b/app/src/main/res/layout/recent_tabs_header.xml @@ -29,7 +29,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="?android:attr/selectableItemBackground" - android:contentDescription="@string/recent_tabs_show_all_content_description" + android:contentDescription="@string/recent_tabs_show_all_content_description_2" android:insetTop="0dp" android:paddingStart="16dp" android:paddingEnd="0dp" diff --git a/app/src/main/res/layout/recent_visits_header.xml b/app/src/main/res/layout/recent_visits_header.xml index 9fec65f2eb..3debf583cc 100644 --- a/app/src/main/res/layout/recent_visits_header.xml +++ b/app/src/main/res/layout/recent_visits_header.xml @@ -30,7 +30,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="?android:attr/selectableItemBackground" - android:contentDescription="@string/past_explorations_show_all_content_description" + android:contentDescription="@string/past_explorations_show_all_content_description_2" android:insetTop="0dp" android:paddingStart="16dp" android:paddingEnd="0dp" diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 8232fe87bf..a35d620311 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -55,7 +55,9 @@ Show all - Show all saved bookmarks button + Show all saved bookmarks + + Show all saved bookmarks button %1$s is produced by Mozilla. @@ -133,7 +135,9 @@ Show all - Show all recent tabs button + Show all recent tabs button + + Show all recent tabs Your search for \"%1$s\" @@ -155,7 +159,9 @@ in the Recently visited section --> Remove - Show all past explorations button + Show all past explorations + + Show all past explorations button