-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve accessibility support in IPP flows #13414
base: trunk
Are you sure you want to change the base?
Conversation
Generated by 🚫 Danger |
📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
|
📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.
|
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:background="@color/color_surface_elevated" |
Check warning
Code scanning / Android Lint
Overdraw: Painting regions more than once Warning
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content"> | ||
android:layout_height="wrap_content" | ||
android:background="@color/color_surface_elevated" |
Check warning
Code scanning / Android Lint
Overdraw: Painting regions more than once Warning
android:layout_height="wrap_content" | ||
android:layout_width="wrap_content" | ||
android:background="@color/color_surface_elevated" |
Check warning
Code scanning / Android Lint
Overdraw: Painting regions more than once Warning
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:background="@color/color_surface_elevated" |
Check warning
Code scanning / Android Lint
Overdraw: Painting regions more than once Warning
app:layout_constraintEnd_toEndOf="@id/progressImageView" | ||
app:layout_constraintStart_toStartOf="@id/progressImageView" | ||
app:layout_constraintTop_toTopOf="@id/progressImageView" /> | ||
<ImageView |
Check warning
Code scanning / Android Lint
Image without contentDescription Warning
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
tools:context="com.woocommerce.android.ui.payments.cardreader.connect.CardReaderConnectDialogFragment"> | ||
android:background="@color/color_surface_elevated" |
Check warning
Code scanning / Android Lint
Overdraw: Painting regions more than once Warning
Closes: #13250
Description
The goal of this PR is to fix the UI of the card reader connection and payment flows in case font size is increased in the accessibility settings of the device.
wrap_content
, and min height was introduced instead. This way the dialogs keep consistent size in case a standard "text size" is set on the device. The height of the dialogs can now scale, however, in case the font scale is increased.illustration
image views are now hidden in case the font scale is increased significantly (> 1.5).Steps to reproduce
Testing information
Test the following flows with the increased font size settings:
The easy way to test the accessibility settings is to use "Device UI Shortcuts" > "Font size" from the level of Android Studio:
![Screenshot 2025-02-06 at 16 28 53](https://private-user-images.githubusercontent.com/4527432/410525060-92bfa96d-ed87-4218-9ba2-4662ee5752bd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4NTY3ODgsIm5iZiI6MTczODg1NjQ4OCwicGF0aCI6Ii80NTI3NDMyLzQxMDUyNTA2MC05MmJmYTk2ZC1lZDg3LTQyMTgtOWJhMi00NjYyZWU1NzUyYmQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDZUMTU0MTI4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NmQ1OGRhMDQzZjE4MTVkZThkOWEyYTg5NGYxNGQzNGI4MTJmYzFiNWEyNmQyNmQ2OTkzMGQ4YzJjODkyYmRjMyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.meBx6go2LPW20MOkqGjnzC_e4ZOuFYgDBkcOfUDQEuc)
To change the font scale dynamically.
The tests that have been performed
Images/gif
Screen_recording_20250206_163200.mp4
RELEASE-NOTES.txt
if necessary. Use the "[Internal]" label for non-user-facing changes.Reviewer (or Author, in the case of optional code reviews):
Please make sure these conditions are met before approving the PR, or request changes if the PR needs improvement: