Skip to content

Bugfix FXIOS-11802 ⁃ [Autofill and Passwords] Saved Address bar in landscape mode displayed black margins#32667

Merged
dicarobinho merged 13 commits intomainfrom
afarcasanu/fxios_11802_25742_autofill_address_padding
Apr 23, 2026
Merged

Bugfix FXIOS-11802 ⁃ [Autofill and Passwords] Saved Address bar in landscape mode displayed black margins#32667
dicarobinho merged 13 commits intomainfrom
afarcasanu/fxios_11802_25742_autofill_address_padding

Conversation

@dicarobinho
Copy link
Copy Markdown
Collaborator

📜 Tickets

Jira ticket
Github issue

💡 Description

Added padding where is necessary

🎥 Demos

Simulator Screenshot - iPad Pro 13-inch (M5) - 2026-03-25 at 12 36 48 Simulator Screenshot - iPhone 11 - 2026-03-25 at 11 45 50 Simulator Screenshot - iPhone 17 Pro Max - 2026-03-25 at 11 36 24 Simulator Screenshot - iPhone 17 Pro Max - 2026-03-25 at 11 36 32 Simulator Screenshot - iPhone 11 - 2026-03-25 at 11 46 03 Simulator Screenshot - iPad Pro 13-inch (M5) - 2026-03-25 at 12 36 36
Before After
Demo

📝 Checklist

  • I filled in the ticket numbers and a description of my work
  • I updated the PR name to follow our PR naming guidelines
  • I ensured unit tests pass and wrote tests for new code
  • If working on UI, I checked and implemented accessibility (Dynamic Text and VoiceOver)
  • If adding telemetry, I read the data stewardship requirements and will request a data review
  • If adding or modifying strings, I read the guidelines and will request a string review from l10n
  • If needed, I updated documentation and added comments to complex code

@dicarobinho dicarobinho requested a review from thatswinnie March 25, 2026 12:32
@dicarobinho dicarobinho marked this pull request as ready for review March 25, 2026 12:32
@dicarobinho dicarobinho requested a review from a team as a code owner March 25, 2026 12:32
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Mar 25, 2026

This pull request has conflicts when rebasing. Could you fix it @dicarobinho? 🙏

…s_padding

# Conflicts:
#	firefox-ios/Client.xcodeproj/project.pbxproj
@mobiletest-ci-bot
Copy link
Copy Markdown

mobiletest-ci-bot commented Mar 25, 2026

Messages
📖 Project coverage: 41.37%

💪 Quality guardian

1 tests files modified. You're a champion of test coverage! 🚀

🥇 Perfect PR size

Smaller PRs are easier to review. Thanks for making life easy for reviewers! ✨

✅ New file code coverage

No new file detected so code coverage gate wasn't ran.

Client.app: Coverage: 39.61

File Coverage
AddressListView.swift 0.0% ⚠️
AddressAutofillSettingsView.swift 0.0% ⚠️
StylingViewModifiers.swift 0.0% ⚠️
AddressCellView.swift 0.0% ⚠️

Generated by 🚫 Danger Swift against 7f46e67

Copy link
Copy Markdown
Collaborator

@thatswinnie thatswinnie left a comment

Choose a reason for hiding this comment

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

While we now don't have black margins anymore, it's still not great. The background of the address should be extended to the edges of the screen just like for Save and Fill Addresses.

Comment thread firefox-ios/Client.xcodeproj/project.pbxproj Outdated
}
}

struct DeviceOrientation: ViewModifier {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why are we comparing width and height here to detect if the view is in landscape? Can't we use UIDeviceOrientation for that? This comparisson will probably not work correctly with stage manager on iPad.

Comment thread firefox-ios/Client/Frontend/Autofill/Address/AddressSettingsCellView.swift Outdated
Comment thread firefox-ios/Client/Frontend/Autofill/Address/AddressSettingsCellView.swift Outdated
Increased cells margins
@dicarobinho dicarobinho requested a review from thatswinnie March 27, 2026 14:44
Image(StandardImageIdentifiers.Large.location)
.renderingMode(.template)
.padding(.leading, 16)
.modifier(ListItemIconPadding(isLandscape: UIDevice.current.orientation.isLandscape,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is only getting called once when the view is shown. This should be updated when the device rotates.


func makeBody(configuration: Configuration) -> some View {
configuration.label
.background(configuration.isPressed ? Color(theme.colors.layer1) : Color(theme.colors.layer2))
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why did we get rid of the color change when the cell is tapped?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

By keeping that, I can't achieve extended colour for the cells.

Screenshot 2026-03-31 at 11 05 17 Simulator Screenshot - iPhone 11 - 2026-03-31 at 11 05 02

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@dicarobinho with this fix we lose the cell selection feedback I check the other autofill screen password and credit card and we have the cell selection feedback I agree with @thatswinnie we should find another solution were we could keep this behaviour

Comment thread firefox-ios/Client/Frontend/Autofill/Address/AddressListView.swift Outdated
@dicarobinho dicarobinho requested a review from thatswinnie March 31, 2026 08:08
@dicarobinho dicarobinho requested a review from yoanarios April 3, 2026 09:40
Alexandru Farcasanu added 2 commits April 9, 2026 10:02
@dicarobinho dicarobinho closed this Apr 9, 2026
@dicarobinho dicarobinho reopened this Apr 9, 2026
@dicarobinho dicarobinho closed this Apr 9, 2026
@dicarobinho dicarobinho reopened this Apr 9, 2026
Copy link
Copy Markdown
Collaborator

@thatswinnie thatswinnie left a comment

Choose a reason for hiding this comment

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

The whole cell should change color when selected, not just part of it. Also for the UIKit cells the selected color is different and the selection state only changes for a short time
Image

Comment thread firefox-ios/Client/Frontend/Autofill/Address/AddressCellView.swift Outdated
…wift

Co-authored-by: Winnie Teichmann <4530+thatswinnie@users.noreply.github.com>
Image(StandardImageIdentifiers.Large.location)
Image(decorative: StandardImageIdentifiers.Large.location)
.renderingMode(.template)
.accessibilityHidden(true)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nit: .accessibilityHidden(true) can be removed now that the image is decorative.

@dicarobinho dicarobinho requested a review from a team as a code owner April 23, 2026 11:07
Copy link
Copy Markdown
Collaborator

@dragosb01 dragosb01 left a comment

Choose a reason for hiding this comment

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

LGTM for automation changes

@dicarobinho dicarobinho merged commit a2e7570 into main Apr 23, 2026
9 checks passed
@dicarobinho dicarobinho deleted the afarcasanu/fxios_11802_25742_autofill_address_padding branch April 23, 2026 11:50
@github-actions
Copy link
Copy Markdown
Contributor

🚀 PR merged to main, targeting version: 150.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants