Skip to content

feat(card-actions): bring back the faded-tint style for normal actions - #453

Merged
nighthawk merged 3 commits into
mainfrom
feat/card-action-faded-tint
Dec 3, 2026
Merged

nighthawk merged 3 commits into
mainfrom
feat/card-action-faded-tint

Conversation

@nighthawk

@nighthawk nighthawk commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

#414 replaced the .fadedTint style for normal card actions with .monochrome, which draws those buttons in the label colour.

This adds .fadedTint back with the colours it had before #414: the accent colour for text and icons, on a 15% accent fill. Inside cards the accent colour is tkAppTintColor, because TKUICardActionsViewFactory sets the container's tint. Apps opt in through TKUICustomization.shared.cardActionNormalStyle. Defaults don't change: TKUICustomization still defaults to .outline, and TripGo to .monochrome.

The colours for each normal style now live on TKUICardActionNormalStyle, so the new TKUICardActionNormalStyleTest (Swift Testing) can cover all three styles.

Manual testing

  1. In an app that uses TripKitUI, set TKUICustomization.shared.cardActionNormalStyle = .fadedTint before the first card appears. TripGo does this through TGWhiteLabelStyleSource.normalActionButtonStyle.
  2. Open a trip or a stop card with several actions.
  3. Check that the normal (non-bold) buttons show tint-coloured text and icons on a faint tint fill, in light and dark mode. Bold buttons should look the same as before.

🤖 Generated with Claude Code

#414 replaced .fadedTint with .monochrome. MyWay+ and NT Bus Tracker shipped
the tinted look and need to keep it, so re-add the style with its pre-#414
colours: accent-coloured text on a 15% accent fill. The normal-style colours
now live on the enum, where a test covers them. Defaults are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-30T10:10:36.319404Z 4766cf4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@nighthawk nighthawk self-assigned this Dec 1, 2026
@nighthawk
nighthawk requested a review from fersagui December 1, 2026 03:21

@fersagui fersagui left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Reviewed and tested in the simulator.

@nighthawk
nighthawk enabled auto-merge (squash) December 3, 2026 22:43
@nighthawk
nighthawk merged commit e2d2836 into main Dec 3, 2026
11 checks passed
@nighthawk
nighthawk deleted the feat/card-action-faded-tint branch December 3, 2026 22:54
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.

2 participants