-
Notifications
You must be signed in to change notification settings - Fork 330
Bug 1815564 - Modify password field text to using Roboto monospace and Added Asterisk over Bullet on password fields. #864
Conversation
4bd132f
to
c5e95d2
Compare
This pull request has conflicts when rebasing. Could you fix it @gitstart? 🙏 |
@@ -80,11 +82,9 @@ class AddLoginFragment : Fragment(R.layout.fragment_add_login), MenuProvider { | |||
) | |||
|
|||
initEditableValues() | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nits: We should avoid removing these new lines in the final revision of this PR. New lines are used to separate logical blocks in a way so that things are more readable.
This pull request has conflicts when rebasing. Could you fix it @gitstart? 🙏 |
Hey @debojyoti452, I saw the I'm sorry for that, you did a good job anyways! |
fenix/app/src/main/java/org/mozilla/fenix/settings/logins/fragment/AddLoginFragment.kt
Outdated
Show resolved
Hide resolved
revealPasswordButton.contentDescription = | ||
context.getString(R.string.saved_login_reveal_password) | ||
} | ||
// We need to reset to take effect | ||
passwordText.text = passwordText.text | ||
passwordText.typeface = Typeface.MONOSPACE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't seem to be directly related to toggling the password "reveal state". I think it could be more coherent to move it to where the text field is configured instead.
🚧 Commit message is using the wrong format: Import translations from android-l10n The comment message should look like:
|
1 similar comment
🚧 Commit message is using the wrong format: Import translations from android-l10n The comment message should look like:
|
<ImageButton | ||
android:id="@+id/revealPasswordButton" | ||
android:layout_width="48dp" | ||
android:layout_height="30dp" | ||
android:layout_marginTop="3dp" | ||
android:background="@null" | ||
android:contentDescription="@string/saved_login_reveal_password" | ||
app:tint="?attr/textPrimary" | ||
app:layout_constraintEnd_toStartOf="@id/clearPasswordTextButton" | ||
app:layout_constraintTop_toTopOf="@id/inputLayoutPassword" | ||
app:srcCompat="@drawable/mozac_ic_eye_24" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am wondering if I missing something. I don't see anything about adding a reveal password functionality in the original requirements.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cwzilla Could you clarify your intention from mozilla-mobile/fenix#28609? Were we suppose to add a button to reveal the password when adding a login?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, correct, would like to add the eye icon to reveal/hide password on the password field on the Add a Login screen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay for reviewing the last changes.
Thanks for adressing all the issues we pointed out!
When testing it I realised that clicking the "reveal/unreveal password" button resets the field state, putting the carret at the beggining of the field. It doesn't sound ideal to me.
One way to solve this would be to use the passwordToggleEnabled
attribute (see StackOverflow link for more info).
The problem is: it doesn't seem to be easy to place the visibility
button where we want on the field, meaning I think it will need to lie at the end of the field.
We still need to position the "clear" button. It could be:
- outside of the field, at its end
- before the visibility button, in the field.
@cwzilla, do you know which option would be the best?
Hi, I think in the field would look better! |
This pull request has conflicts when rebasing. Could you fix it @gitstart? 🙏 |
1 similar comment
This pull request has conflicts when rebasing. Could you fix it @gitstart? 🙏 |
This pull request has conflicts when rebasing. Could you fix it @gitstart? 🙏 |
hello @gabrielluong, |
Hello, Thank you so much for your contribution. We have moved our firefox-android repo over to mozilla-central. Please feel free to reopen a new PR against the new repo. You will have to clone the new repository and reapply your changes. Thank you again, and sorry for the inconvenience. For more information, please see https://github.com/mozilla-mobile/firefox-android/wiki#upcoming-migration-to-mozilla-central. |
Modify password field text to using Roboto monospace && add password reveal toggle on
Add Login Screen
.Screens need refactor:
Enhancement Task
Issue Screenshots
fnxoss-40.webm
Fix Screenshots
fnxoss-40-fix.webm
Pull Request checklist
QA
GitHub Automation
Fixes mozilla-mobile/fenix#28609
https://bugzilla.mozilla.org/show_bug.cgi?id=1815564
https://bugzilla.mozilla.org/show_bug.cgi?id=1815564
https://bugzilla.mozilla.org/show_bug.cgi?id=1815564
https://bugzilla.mozilla.org/show_bug.cgi?id=1815564
https://bugzilla.mozilla.org/show_bug.cgi?id=1815564
https://bugzilla.mozilla.org/show_bug.cgi?id=1815564