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-1000: fix Button disabled state #310

Merged
merged 2 commits into from
Oct 13, 2023
Merged

Conversation

jaranaz
Copy link
Contributor

@jaranaz jaranaz commented Oct 10, 2023

🎟️ Jira ticket

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

πŸ₯… What's the goal?

The Button component for SwiftUI is using wrong colors for its disabled state.
This PR completes the already merged PR #308, where some states were missed.

πŸ‘ AppCenter build

qrcode (3)

@jaranaz jaranaz requested review from a team, idenjoe and WanaldinoTelefonica and removed request for a team October 10, 2023 09:54
@jaranaz jaranaz self-assigned this Oct 10, 2023
Copy link
Contributor

@WanaldinoTelefonica WanaldinoTelefonica left a comment

Choose a reason for hiding this comment

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

πŸŽƒ

@jaranaz jaranaz force-pushed the LATCH-1000-fix-button-disabled branch from 29dc4f2 to 1c53613 Compare October 11, 2023 08:24
@@ -43,8 +43,8 @@ public extension ButtonStyle where Self == MisticaButtonStyle {
),
.disabled: MisticaButton.StateStyle(
textColor: .textButtonPrimary,
backgroundColor: .buttonPrimaryBackground,
borderColor: .buttonPrimaryBackground
backgroundColor: .buttonPrimaryBackground.opacity(0.5),
Copy link
Contributor

Choose a reason for hiding this comment

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

IMHO I would use constants for these opacities since they are repeated in many places.

@jaranaz jaranaz force-pushed the LATCH-1000-fix-button-disabled branch from 700bd4c to 99ea66f Compare October 13, 2023 08:37
@jaranaz jaranaz force-pushed the LATCH-1000-fix-button-disabled branch from 99ea66f to b92c215 Compare October 13, 2023 08:40
@jaranaz jaranaz merged commit fb108a1 into main Oct 13, 2023
2 checks passed
@jaranaz jaranaz deleted the LATCH-1000-fix-button-disabled branch October 13, 2023 09:26
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.

4 participants