Skip to content

fix(SDK-1272): move the print-checks CTA below the description - #2720

Open
krisxcrash wants to merge 1 commit into
mainfrom
kw/fix/sdk-1272-print-checks-cta-placement
Open

fix(SDK-1272): move the print-checks CTA below the description#2720
krisxcrash wants to merge 1 commit into
mainfrom
kw/fix/sdk-1272-print-checks-cta-placement

Conversation

@krisxcrash

Copy link
Copy Markdown
Contributor

Summary

  • The "View and print checks" button was passed via Alert's action prop, which composes into the header row beside the label/icon — documented as intended for compact, inline CTAs next to a title, not a CTA below body copy. PrintChecksBanner was the only production caller passing action to Alert, so no other usage is affected.
  • Moves the button into children, below the description, matching the exact composition TransitionPayrollAlertPresentation already uses for its own alert CTAs (description Text, then button(s) below, no action prop).

Jira: SDK-1272

Test plan

  • PrintChecks*.test.tsx pass (24/24)
  • eslint/tsc --noEmit clean
  • Confirm in the browser that the print-checks banner shows the CTA below the description text

The button was passed via Alert's action prop, which composes into the
header row beside the label -- an unusual spot for a CTA, per report.
Moves it into children, below the description, matching the same
composition TransitionPayrollAlertPresentation already uses for its
own alert CTAs.
@krisxcrash
krisxcrash marked this pull request as ready for review September 4, 2026 23:36
@krisxcrash
krisxcrash requested a review from a team as a code owner September 4, 2026 23:36
Comment on lines +52 to +62
<Alert status="info" label={t('title', { count: checkPaymentsCount })}>
<Flex flexDirection="column" gap={16}>
<Text>{t('description')}</Text>
{isProcessed && (
<div>
<Button variant="secondary" onClick={onStartPrintChecks}>
{t('cta')}
</Button>
</div>
)}
</Flex>

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.

@krisxcrash i think aaron should weigh in on this one! We should be using the action prop so that partners with alerts that have CTAs get properly placed when they are mapping to their own alert. If this was non designer feedback i think it can just be ignored. Otherwise it's worth it to have a chat with Aaron to globally more the alert action

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