From 4835dbb1a8c22b3a844cc141b1e2f0590356b659 Mon Sep 17 00:00:00 2001
From: Mihai Adrian <48995920+mcarare@users.noreply.github.com>
Date: Wed, 14 Aug 2019 20:12:39 +0300
Subject: [PATCH] [fenix] For
https://github.com/mozilla-mobile/fenix/issues/4434 - made close button for
collections more accessible.
(https://github.com/mozilla-mobile/fenix/pull/4443)
* fixes https://github.com/mozilla-mobile/fenix/issues/4434 - made close button for collections more accessible.
set recommended minimum size for accessibility 48x48, while keeping image size the same
removed margin from button as it was not needed anymore
aligned close button in center of tab to be visual consistent with alignment of favicon and more visual accessible
implemented same visual solution as for https://github.com/mozilla-mobile/fenix/issues/4193 - close button for tabs
* fixes https://github.com/mozilla-mobile/fenix/issues/4434 - made buttons for collection home list row more accessible and aligned 3 dot menu with individual tabs close button
set buttons sizes to recommended minimum size for accessibility 48x48, while keeping image size the same
removed margins from buttons as they were not needed anymore
aligned center of menu buttons with center of collection icon
constrained description top to bottom of title, instead of share button to reduce empty space. (overlap with share button is already prevented by end constraint of description)
---
.../res/layout/collection_home_list_row.xml | 18 ++++++++----------
app/src/main/res/layout/tab_in_collection.xml | 10 +++++-----
2 files changed, 13 insertions(+), 15 deletions(-)
diff --git a/app/src/main/res/layout/collection_home_list_row.xml b/app/src/main/res/layout/collection_home_list_row.xml
index c144107e57..e61b0ab21e 100644
--- a/app/src/main/res/layout/collection_home_list_row.xml
+++ b/app/src/main/res/layout/collection_home_list_row.xml
@@ -78,32 +78,30 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/collection_share_button"
app:layout_constraintStart_toStartOf="@id/collection_title"
- app:layout_constraintTop_toBottomOf="@id/collection_share_button"
+ app:layout_constraintTop_toBottomOf="@id/collection_title"
tools:text="@tools:sample/lorem/random" />
+ app:layout_constraintTop_toTopOf="@id/collection_icon"
+ app:layout_constraintBottom_toBottomOf="@id/collection_icon"/>
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintBottom_toBottomOf="parent"/>