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

Add chevron option to title link #371

Merged
merged 7 commits into from
Jul 5, 2024
Merged

Conversation

DevPabloGarcia
Copy link
Contributor

@DevPabloGarcia DevPabloGarcia commented Jul 3, 2024

🥅 What's the goal?

As figma definition title link could have chevron.

🚧 How do we do it?

  • Add chevron option to compose and xml title element

☑️ Checks

  • I updated the documentation, including readmes and wikis. If this is a breaking change, tag the PR with "Breaking Change" label and remember to include breaking change migration guide in release notes where this version is released.
  • Tested with dark mode.
  • Tested with API 24.
  • Sync done with iOS team for this feature to ensure alignment, if applies.

🧪 How can I test this?

If it cannot be tested explain why.

  • 🖼️ Screenshots/Videos
  • Mistica App QR or download link
  • Reviewed by Mistica design team

Captura de pantalla 2024-07-03 a las 16 42 03

Captura de pantalla 2024-07-05 a las 10 12 04

@@ -133,6 +133,7 @@
</attr>
<attr name="link" format="string" />
<attr name="linkOnClick" format="string" />
<attr name="linkWithChevron" format="boolean"/>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

named "linkWithChevron" because withChevron attr already declared

@DevPabloGarcia DevPabloGarcia requested review from a team, jeslat, dagonco and aweell and removed request for a team July 3, 2024 14:55
Copy link

github-actions bot commented Jul 3, 2024

📱 New catalog for testing generated: Download

@@ -84,8 +91,10 @@ class TitleView @JvmOverloads constructor(
)
.takeIf { it }
?.let { setTitleHeading() }

linkTextView.setTextAndVisibility(styledAttrs.getText(R.styleable.TitleView_link))
val text = styledAttrs.getText(R.styleable.TitleView_link)
Copy link
Contributor

@jeslat jeslat Jul 4, 2024

Choose a reason for hiding this comment

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

I would rename it to link or linkText

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

Comment on lines 10 to 11
<com.google.android.material.textview.MaterialTextView
android:id="@+id/title_text"
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this not too much indenting? Could you review your code style in AS?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh yes! solved 😄

@DevPabloGarcia DevPabloGarcia requested a review from jeslat July 4, 2024 07:47
Copy link

github-actions bot commented Jul 4, 2024

📱 New catalog for testing generated: Download

Copy link
Contributor

@jeslat jeslat left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Member

@dagonco dagonco left a comment

Choose a reason for hiding this comment

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

Marvelous!

@aweell
Copy link

aweell commented Jul 4, 2024

Seems to be a discrepancy between Classic and Compose:

Screenshot 2024-07-04 at 11 01 23

Compose is the one that is aligned with the current design definition

Screenshot 2024-07-04 at 11 03 53

I checked the buttonLink also, but it seems that in both scenarios the chevron is positioned correctly

Copy link

github-actions bot commented Jul 5, 2024

📱 New catalog for testing generated: Download

Copy link

github-actions bot commented Jul 5, 2024

📱 New catalog for testing generated: Download

Copy link

@aweell aweell left a comment

Choose a reason for hiding this comment

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

LGTM!

@DevPabloGarcia DevPabloGarcia merged commit 8ce15d8 into main Jul 5, 2024
5 checks passed
@DevPabloGarcia DevPabloGarcia deleted the ANDROID-14906_title_chevron branch July 5, 2024 09:52
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.

4 participants