[WOOMOB-2323] Match CIAB booking badge styles#15492
Merged
Conversation
Collaborator
|
|
AdamGrzybkowski
approved these changes
Mar 9, 2026
Comment on lines
+88
to
+107
| fun BookingAttendanceStatus.backgroundColor(): Color = if (isOutlined()) { | ||
| Color.Transparent | ||
| } else { | ||
| colorResource(R.color.tagView_bg) | ||
| } | ||
|
|
||
| @Composable | ||
| fun BookingAttendanceStatus.textColor(): Color = if (isOutlined()) { | ||
| colorResource(R.color.color_on_surface_high) | ||
| } else { | ||
| colorResource(R.color.tagView_text) | ||
| } | ||
|
|
||
| @Composable | ||
| fun BookingAttendanceStatus.textColor(): Color = colorResource(R.color.tagView_text) | ||
| fun BookingAttendanceStatus.border(): BorderStroke? = if (isOutlined()) { | ||
| BorderStroke(1.dp, colorResource(R.color.tag_border_booking_outlined)) | ||
| } else { | ||
| null | ||
| } | ||
|
|
Contributor
There was a problem hiding this comment.
Those could be private. Are we planning to reuse them?
Contributor
Author
There was a problem hiding this comment.
Good point. No reuse planned for now, so I made those helpers private in e35851f.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## trunk #15492 +/- ##
============================================
- Coverage 39.47% 39.46% -0.02%
+ Complexity 11169 11168 -1
============================================
Files 2249 2249
Lines 129140 129174 +34
Branches 18060 18068 +8
============================================
Hits 50977 50977
- Misses 72974 73007 +33
- Partials 5189 5190 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Fixes WOOMOB-2323
Updates CIAB bookings badges to match the current design styling in the bookings UI. This doesn't affect POS badges, I'll update those once we approve the styling in this PR.
Changes
Test Steps
Images/gif
RELEASE-NOTES.txtif necessary. Use the "[Internal]" label for non-user-facing changes.