-
Notifications
You must be signed in to change notification settings - Fork 933
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply max-width constraints to autofill dialogs' contents (#3773)
<!-- Note: This checklist is a reminder of our shared engineering expectations. The items in Bold are required If your PR involves UI changes: 1. Upload screenshots or screencasts that illustrate the changes before / after 2. Add them under the UI changes section (feel free to add more columns if needed) If your PR does not involve UI changes, you can remove the **UI changes** section At a minimum, make sure your changes are tested in API 23 and one of the more recent API levels available. --> Task/Issue URL: https://app.asana.com/0/0/1205495150811754/f ### Description We want to apply a max-width constraint to the contents of the autofill dialogs. Some of the autofill dialogs had different ways of constraining content before, and others had none; this PR consolidates them all into using this approach: - Guideline left set to 10% from left edge of dialog, guideline right set to 10% from right edge of dialog - Autofill dialog content can use the remaining 80% of dialog width, up to max of `480dp` ℹ️ Note for reviewing the PR: - a lot of the _changes_ are caused by indentation as views are now inside another view group - tip: hide whitespace differences to see only what's actually changed, ignoring the change indentation <img width="249" alt="Screenshot 2023-10-31 at 12 34 27" src="https://github.com/duckduckgo/Android/assets/1336281/f19f99f0-6b02-4d3a-9810-4d2a4719432c"> ### Steps to test this PR _Save login prompt_ - [x] Visit https://fill.dev/form/login-simple and enter username [`abcd`] and password (>= 4 chars) - [x] Verify save prompt looks ok _Select login prompt_ - [x] Visit https://fill.dev/form/login-simple again - [x] verify prompt to login with saved credential looks ok _Update login prompt_ - [x] Visit https://fill.dev/form/login-simple again and dismiss any prompts to use a saved login - [x] Instead, enter same username as before `abcd` and a new password - [x] Verify the update login prompt looks ok _Generate password prompt_ - [x] Visit https://fill.dev/form/registration-email and tap on password field - [x] Verify generate password prompts looks ok _Email protection in-context signup_ - [x] Visit https://fill.dev/form/registration-email when you're **not** signed into email protection (requires device to be in English locale) - [x] Tap on grey Dax in email field; verify the prompt to sign up for email protection looks ok _Email protection, signed in state_ - [x] Sign into email protection (doesn't matter how you sign in, in-context or normal approach from settings) - [x] Visit https://fill.dev/form/registration-email again, and tap on email field - [x] Verify the prompt to use Email Protection looks ok ### UI changes Screenshots available [here](https://app.asana.com/0/0/1205842983551006/f) for phones and tablets, portrait and landscape
- Loading branch information
Showing
8 changed files
with
483 additions
and
405 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.