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(Bottom Sheet): Fix component to expand horizontally #290

Merged
merged 2 commits into from
Jul 19, 2023

Conversation

WanaldinoTelefonica
Copy link
Contributor

🎟️ Jira ticket

IOS-9113

πŸ₯… What's the goal?

  • Fix the component to fit in iOS 14.5 or less. The texts are not well shown

🚧 How do we do it?

Info: The dot is centered on a single line label with the same specs than the visible label, but is in a deeper layer stackView.

  • The component was using a dummy view to create the space for the dot in the front stackView. This dummy view has been removed and the stackView modifies the layout margin to replace this space.

πŸ§ͺ How can I verify this?

Simulator Screenshot - iPhone 6s - 2023-07-17 at 12 13 34
Simulator Screenshot - iPhone 6s - 2023-07-17 at 12 14 51
Simulator Screenshot - iPhone 6s - 2023-07-17 at 12 14 56

@WanaldinoTelefonica WanaldinoTelefonica requested a review from a team July 17, 2023 10:16
@WanaldinoTelefonica WanaldinoTelefonica self-assigned this Jul 17, 2023
@WanaldinoTelefonica WanaldinoTelefonica requested review from Gomay88 and alejandroruizponce and removed request for a team July 17, 2023 10:16
Copy link
Contributor

@alejandroruizponce alejandroruizponce left a comment

Choose a reason for hiding this comment

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

Great work!

@@ -84,13 +82,12 @@ private extension InformativeRow {
bottomContent.isHidden = true
}

dummyView.amount = item.icon.size.width
bottomContent.layoutMargins.left = item.icon.size.width + 8
Copy link
Contributor

Choose a reason for hiding this comment

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

IMHO Magic number "8" must be in a descriptive constant because you are using it here and in the frontStackView WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I've changed it πŸ˜„

@WanaldinoTelefonica WanaldinoTelefonica merged commit 266c5d8 into main Jul 19, 2023
2 checks passed
@WanaldinoTelefonica WanaldinoTelefonica deleted the IOS-9113_Bottom_Sheet_ios_14 branch July 19, 2023 08:32
tuentisre pushed a commit that referenced this pull request Jul 19, 2023
## [25.3.1](v25.3.0...v25.3.1) (2023-07-19)

### Bug Fixes

* **Bottom Sheet:** Fix component to expand horizontally ([#290](#290)) ([266c5d8](266c5d8))
* **InputField:** Avoid TextField auto expands horizontally ([#289](#289)) ([c321d88](c321d88))
@tuentisre
Copy link
Collaborator

πŸŽ‰ This PR is included in version 25.3.1 πŸŽ‰

The release is available on GitHub release

Your semantic-release bot πŸ“¦πŸš€

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.

5 participants