Skip to content
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

Fix passwords empty screen lock icon in dark mode #3436

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

graeme
Copy link
Collaborator

@graeme graeme commented Oct 22, 2024

Task/Issue URL: https://app.asana.com/0/1203822806345703/1208570651540471/f

Description:

The lock icon on passwords screen empty state has wrong dark mode colour.
This fixes it so it's the same colour as the text.

Steps to test this PR:

  1. Make sure you have no passwords saved
  2. Go to Password Management screen
  3. Check that the icon matches the text colour.
  4. Switch dark mode on and off to make sure this is the case in both states
  5. Go to Settings -> Passwords + Autofill
  6. Switch between Auto-lock on and off and make sure the empty-state message with the lock icon looks correct and that the link works.

Definition of Done:


Internal references:

Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation

@graeme graeme requested a review from amddg44 October 22, 2024 10:31
@@ -1159,3 +1130,17 @@ extension PasswordManagementViewController: NSMenuItemValidation {
return !accounts.isEmpty
}
}

struct PasswordManagementEmptyStateMessage: View {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In-line links + images are just so much easier with SwiftUI...

hostingView.autoresizingMask = [.height, .width]
hostingView.translatesAutoresizingMaskIntoConstraints = true
emptyStateMessageContainer.addSubview(hostingView)
emptyStateMessageHeight.constant = listModel.emptyStateMessageViewHeight
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the height constant is causing some issues with other languages which have longer strings
image
image

Copy link
Contributor

@amddg44 amddg44 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lock icon styling looking great, and link still works as expected; just one small issue with longer translations

Copy link

This PR has been inactive for more than 7 days and will be automatically closed 7 days from now.

@github-actions github-actions bot added the stale label Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants