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

LATCH-1002: update text and background colors for Tag #309

Merged
merged 1 commit into from
Oct 10, 2023

Conversation

jaranaz
Copy link
Contributor

@jaranaz jaranaz commented Oct 4, 2023

🎟️ Jira ticket

https://jira.tid.es/browse/LATCH-1002

πŸ₯… What's the goal?

The Tag component is not using the right text and background colors for its styles, according to the specs for this component.

🚧 How do we do it?

Fix Tag component colors in both UIKit and SwiftUI.

πŸ‘ AppCenter build

qrcode (1)

@jaranaz jaranaz self-assigned this Oct 4, 2023
@jaranaz jaranaz requested review from a team, idenjoe, alexanegon and yceballost and removed request for a team October 4, 2023 10:41
@jaranaz jaranaz changed the title Fix Tag foreground color for warning style LATCH-1002: fix Tag foreground color for warning style Oct 4, 2023
@@ -104,7 +104,7 @@ public struct Tag: View {
case .inactive:
return .neutralMedium
case .warning:
return .warning
return .warningHigh
Copy link
Contributor

@idenjoe idenjoe Oct 4, 2023

Choose a reason for hiding this comment

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

Maybe we should check all the styles and their corresponding token. In TagViewStyle(UIKit) we have different tokens for promo, active, success, error styles (and inverse that does not exist in SwiftUI?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm going to check on this, probably we will need to fix more than warning style

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! Now we have fixed the wrong colors, according to the specs document ;)

@jaranaz jaranaz force-pushed the LATCH-1002-fix-tag-text-color branch from 145845d to c4651d0 Compare October 6, 2023 13:44
@jaranaz jaranaz changed the title LATCH-1002: fix Tag foreground color for warning style LATCH-1002: update text and background colors for Tag Oct 6, 2023
@jaranaz jaranaz removed the request for review from yceballost October 10, 2023 07:19
@jaranaz jaranaz merged commit 6a9f441 into main Oct 10, 2023
3 checks passed
@jaranaz jaranaz deleted the LATCH-1002-fix-tag-text-color branch October 10, 2023 07:19
tuentisre pushed a commit that referenced this pull request Oct 16, 2023
# [26.2.0](v26.1.0...v26.2.0) (2023-10-16)

### Bug Fixes

* **Button:** change colors for disabled style ([#308](#308)) ([e829160](e829160))
* **Button:** change colors for disabled style ([#310](#310)) ([fb108a1](fb108a1))
* **Button:** Change cornerCurve from continuous to circular ([#307](#307)) ([26a73b3](26a73b3))
* **Snackbar:** change color for action button ([#304](#304)) ([7054e3d](7054e3d))
* **Tag:** change foreground and background colors according to specs ([#309](#309)) ([6a9f441](6a9f441))

### Features

* **Button:** Added accesibility to right image (chevron) ([05d77d9](05d77d9))
@tuentisre
Copy link
Collaborator

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

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