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

[Brand Updates] Remove underline from links in the app #14938

Conversation

hichamboushaba
Copy link
Member

@hichamboushaba hichamboushaba commented Jan 21, 2025

Part of: woocommerce/woomobile-private#413

Description

This PR removes all underlines from links in the app, except the login screens, where we need to wait until #14779 is merged.

The PR also adds another fix that I'll mention in the comments below.

Steps to reproduce

I think checking the screenshots below is enough (I tried to collect the screenshots of all the modified and still used screens in the app), but feel free to check the corresponding screens in the app too.

Testing information

Tested using iPhone 16 simulator, iOS 18.1

Screenshots

Light Dark
Simulator Screenshot - iPhone 16 - 2025-01-21 at 15 34 44 Simulator Screenshot - iPhone 16 - 2025-01-21 at 15 34 50
Simulator Screenshot - iPhone 16 - 2025-01-21 at 15 35 45 Simulator Screenshot - iPhone 16 - 2025-01-21 at 15 35 37
Simulator Screenshot - iPhone 16 - 2025-01-21 at 16 05 36 Simulator Screenshot - iPhone 16 - 2025-01-21 at 16 05 40
Simulator Screenshot - iPhone 16 - 2025-01-21 at 16 06 03 Simulator Screenshot - iPhone 16 - 2025-01-21 at 16 05 58
Simulator Screenshot - iPhone 16 - 2025-01-21 at 16 08 46 Simulator Screenshot - iPhone 16 - 2025-01-21 at 16 08 51
Simulator Screenshot - iPhone 16 - 2025-01-21 at 16 09 13 Simulator Screenshot - iPhone 16 - 2025-01-21 at 16 09 07
Simulator Screenshot - iPhone 16 - 2025-01-21 at 16 51 47 Simulator Screenshot - iPhone 16 - 2025-01-21 at 16 51 33

  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

Reviewer (or Author, in the case of optional code reviews):

Please make sure these conditions are met before approving the PR, or request changes if the PR needs improvement:

  • The PR is small and has a clear, single focus, or a valid explanation is provided in the description. If needed, please request to split it into smaller PRs.
  • Ensure Adequate Unit Test Coverage: The changes are reasonably covered by unit tests or an explanation is provided in the PR description.
  • Manual Testing: The author listed all the tests they ran, including smoke tests when needed (e.g., for refactorings). The reviewer confirmed that the PR works as expected on all devices (phone/tablet) and no regressions are added.

@hichamboushaba hichamboushaba added the category: design Layout and style elements in the UI or user interface, including color and animations. label Jan 21, 2025
@wpmobilebot
Copy link
Collaborator

wpmobilebot commented Jan 21, 2025

WooCommerce iOS📲 You can test the changes from this Pull Request in WooCommerce iOS by scanning the QR code below to install the corresponding build.

App NameWooCommerce iOS WooCommerce iOS
Build Numberpr14938-0f66b0e
Version21.4
Bundle IDcom.automattic.alpha.woocommerce
Commit0f66b0e
App Center BuildWooCommerce - Prototype Builds #12627
Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.

@@ -2,7 +2,7 @@ import SwiftUI

extension Color {

static var accent: Color {
static var posAccent: Color {
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the fix that I mentioned above, in a recent PR, I introduced this new property, and it resulted in an issue with the subtle button style that we use for "Write with AI" button:

My understanding of the issue: given that now we had UIColor.accent and Color.accent both in the app, the UIKitAttributes.foregroundColor started using the Color one, and ignore it at runtime, so to avoid any other similar issues, I'm renaming this property to make it clearer it's only for POS screens.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the explanation!

@@ -92,7 +92,7 @@ struct AccountCreationForm: View {
.renderedIf(viewModel.currentField == .password)

// Terms of Service link.
AttributedText(tosAttributedText, enablesLinkUnderline: true)
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure if we should remove the enableLinkUnderline completely now or not, WDYT?

Copy link
Contributor

Choose a reason for hiding this comment

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

I am OK with keeping it inside AttributedText as a feature. IMO, cleaning up AttributedText sounds like it is out of scope for this project.

@hichamboushaba hichamboushaba marked this pull request as ready for review January 21, 2025 15:58
@selanthiraiyan selanthiraiyan self-assigned this Jan 22, 2025
Copy link
Contributor

@selanthiraiyan selanthiraiyan left a comment

Choose a reason for hiding this comment

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

Thanks for working on this, Hicham! The code changes and screenshots LGTM. 🚀

@@ -2,7 +2,7 @@ import SwiftUI

extension Color {

static var accent: Color {
static var posAccent: Color {
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the explanation!

@@ -92,7 +92,7 @@ struct AccountCreationForm: View {
.renderedIf(viewModel.currentField == .password)

// Terms of Service link.
AttributedText(tosAttributedText, enablesLinkUnderline: true)
Copy link
Contributor

Choose a reason for hiding this comment

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

I am OK with keeping it inside AttributedText as a feature. IMO, cleaning up AttributedText sounds like it is out of scope for this project.

@hichamboushaba hichamboushaba merged commit d0390ea into feature/woo-2.0-brand-updates Jan 22, 2025
16 checks passed
@hichamboushaba hichamboushaba deleted the issue/woo-2.0-hyperlink-underlines branch January 22, 2025 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: design Layout and style elements in the UI or user interface, including color and animations.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants