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

feat[StatusButton] missing green/success state #13624

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

caybro
Copy link
Member

@caybro caybro commented Feb 19, 2024

What does the PR do

  • implemented the missing StatusBaseButton.Type.Success state and colors for both StatusButton and StatusFlatButton
  • use a switch instead of a waterfall of ternaries
  • adjust storybook for the new case

Fixes #13622

Affected areas

Status[Base,Flat]Button

Screenshot of functionality (including design for comparison)

  • I've checked the design and this PR matches it
Zaznam.obrazovky.z.2024-02-19.14-36-28.webm

@caybro caybro linked an issue Feb 19, 2024 that may be closed by this pull request
@status-im-auto
Copy link
Member

status-im-auto commented Feb 19, 2024

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ b30473a #1 2024-02-19 13:44:28 ~6 min tests/nim 📄log
✔️ b30473a #1 2024-02-19 13:44:58 ~7 min macos/aarch64 🍎dmg
✔️ b30473a #1 2024-02-19 13:48:06 ~10 min macos/x86_64 🍎dmg
✔️ b30473a #1 2024-02-19 13:50:34 ~12 min tests/ui 📄log
✔️ b30473a #1 2024-02-19 13:52:55 ~15 min linux/x86_64 📦tgz
✔️ b30473a #1 2024-02-19 14:12:22 ~34 min windows/x86_64 💿exe
✔️ 0e602db #2 2024-02-19 23:04:36 ~4 min macos/aarch64 🍎dmg
✔️ 0e602db #2 2024-02-19 23:06:16 ~6 min tests/nim 📄log
✔️ 0e602db #2 2024-02-19 23:07:59 ~8 min macos/x86_64 🍎dmg
✔️ 0e602db #2 2024-02-19 23:10:36 ~10 min tests/ui 📄log
✔️ 0e602db #2 2024-02-19 23:15:25 ~15 min linux/x86_64 📦tgz
✔️ 0e602db #2 2024-02-19 23:29:00 ~29 min windows/x86_64 💿exe

Copy link
Member

@micieslak micieslak left a comment

Choose a reason for hiding this comment

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

lgtm!

ui/StatusQ/src/StatusQ/Controls/StatusButton.qml Outdated Show resolved Hide resolved
- implemented the missing `StatusBaseButton.Type.Success` state and
colors for both `StatusButton` and `StatusFlatButton`
- use a `switch` instead of a waterfall of ternaries
- adjust storybook for the new case

Fixed #13622
@caybro caybro force-pushed the 13622-statusbutton-missing-greensuccess-state branch from b30473a to 0e602db Compare February 19, 2024 22:59
@caybro caybro merged commit e773d8d into master Feb 19, 2024
8 checks passed
@caybro caybro deleted the 13622-statusbutton-missing-greensuccess-state branch February 19, 2024 23:35
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.

[StatusButton] missing green/success state
4 participants