Skip to content

Commit

Permalink
[PM-16776][PM-16693] Visual tweaks to the 2FA notice screen (#1253)
Browse files Browse the repository at this point in the history
  • Loading branch information
KatherineInCode authored Jan 10, 2025
1 parent 34cbcf6 commit 3d00a96
Show file tree
Hide file tree
Showing 17 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ struct EmailAccessView: View {
store.send(.learnMoreTapped)
} label: {
Text(Localizations.learnMore)
.styleGuide(.subheadline)
.styleGuide(.callout, weight: .semibold)
.foregroundStyle(Asset.Colors.textInteraction.swiftUIColor)
}
)
Expand All @@ -51,6 +51,7 @@ struct EmailAccessView: View {
openURL(url)
store.send(.clearURL)
}
.navigationBarHidden(true)
}

private var toggleCard: some View {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ struct SetUpTwoFactorView: View {
openURL(url)
store.send(.clearURL)
}
.navigationBarHidden(false)
.navigationBarTitle(Localizations.twoStepLogin)
.navigationBarTitleDisplayMode(.inline)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class SetUpTwoFactorViewTests: BitwardenTestCase {
func test_snapshot_setUpTwoFactorView_allowDelay_true() {
processor.state.allowDelay = true
assertSnapshots(
of: subject,
of: subject.navStackWrapped,
as: [.defaultPortrait, .defaultPortraitDark, .defaultPortraitAX5, .defaultLandscape]
)
}
Expand All @@ -75,7 +75,7 @@ class SetUpTwoFactorViewTests: BitwardenTestCase {
func test_snapshot_setUpTwoFactorView_allowDelay_false() {
processor.state.allowDelay = false
assertSnapshots(
of: subject,
of: subject.navStackWrapped,
as: [.defaultPortrait, .defaultPortraitDark, .defaultPortraitAX5, .defaultLandscape]
)
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions BitwardenShared/UI/Vault/Vault/VaultCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,6 @@ final class VaultCoordinator: Coordinator, HasStackNavigator { // swiftlint:disa
/// - emailAddress: The email address of the user.
private func showTwoFactorNotice(allowDelay: Bool, emailAddress: String) {
let navigationController = UINavigationController()
let appearance = UINavigationBarAppearance()
appearance.configureWithTransparentBackground()
navigationController.navigationBar.scrollEdgeAppearance = appearance

let coordinator = module.makeTwoFactorNoticeCoordinator(stackNavigator: navigationController)
coordinator.start()
Expand Down

0 comments on commit 3d00a96

Please sign in to comment.