Skip to content

fix(popover): apply classNameFooter to walkthrough footers - #3246

Merged
interactivellama merged 2 commits into
salesforce:masterfrom
rediga:fix/2744-popover-classname-footer
Oct 29, 2026
Merged

interactivellama merged 2 commits into
salesforce:masterfrom
rediga:fix/2744-popover-classname-footer

Conversation

@rediga

@rediga rediga commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #2744

Additional description

When a Popover uses footerWalkthroughActions / stepText (walkthrough footer path), classNameFooter (and deprecated footerClassName) were ignored. Those classes were only applied when the generic footer prop rendered the footer element.

This aligns the walkthrough footer path with the documented classNameFooter behavior and with the footer rendering path.

Regression test: asserts .slds-popover__footer receives classNameFooter when footerWalkthroughActions is set.


CONTRIBUTOR checklist (do not remove)

Please complete for every pull request.

Green gate — all of these must pass locally (CI runs the same):

  • npm run lint passes with 0 errors (npm run lint:fix to auto-fix). Warnings are the tracked gradual-migration backlog; do not add new errors. (pre-commit ran eslint --fix + prettier)
  • npm run typecheck is clean (tsc --noEmit).
  • npm test -- --run for the affected suite passes — components/popover/__tests__/popover.test.jsx (9 tests).
  • npm run build succeeds (type-check + Vite library build + .d.ts + entry shims).

Behavior & docs:

  • First-time contributors: sign the CLA (a bot will comment with instructions).
  • Added/updated Vitest + React Testing Library tests for the change (regression for #2744).
  • Reviewed the component's Storybook stories for walkthrough/feature popovers (footer markup only).
  • Story/example code uses the component's real prop API.
  • Storybook Accessibility (a11y) panel shows no new violations for the affected stories. N/A: className-only change.
  • If you added or changed a type, remember runtime PropTypes were removed in the TS migration — types are the contract. N/A: no type changes.

REVIEWER checklist (do not remove)

  • CI is green (GitHub Actions CI workflow: lint, typecheck, test, build). Chromatic visual review, if configured, has been checked.
  • Change has adequate test coverage; bug fixes include a regression test.
  • Reviewed the affected Storybook stories and their a11y panels.
  • Rendered markup still conforms to SLDS — check the story HTML snapshot diff (components/__tests__/__snapshots__/story-snapshots.test.jsx.snap).
  • Public API / package surface: if exports changed, the deep-import contract still holds. N/A: no export changes.

@welcome

welcome Bot commented Oct 17, 2026

Copy link
Copy Markdown

Thanks for opening this pull request! 💯

This is a community-driven project, and we can't do it without your participation. Please check out our contributing guidelines and review the Contributor Checklist if you haven't already, to make sure everything is squared away. CircleCI will take about 10 minutes to run through the same items that are on the Contributor checklist with a pass/fail check below. Please fix any issues that cause CircleCI to fail or ask for clarification--we try, but sometimes the errors can be unclear.
A maintainer will try to respond within 7 days. If you haven’t heard anything by then, please bump this thread. To ensure codebase quality, large code line changes may take more than 2 weeks to review, but may take longer depending on the number of pull requests in the queue. Feel free to ask for a status update at any time--you won't be bothering anyone.
Once feedback has been given, please reply to the feedback giver once the feedback on been addressed, so that they can continue the review.
If you need a release while you are waiting for a code review, you can publish a built tag to your own fork. See directions in the release README.

@rediga

rediga commented Oct 17, 2026

Copy link
Copy Markdown
Contributor Author

@interactivellama Could you please review this fix for #2744 when you have a chance? Thanks!

@interactivellama

Copy link
Copy Markdown
Contributor

Thanks, the fix matches the generic footer path and the regression test is clear. Could you drop the unrelated Prettier rewrapping in popover.tsx and popover.test.jsx, or move it into a separate style: commit? Only the

change and the new test are needed here. Please also rebase on master, since you both edit the CHANGELOG "Fixed" section.

@rediga
rediga force-pushed the fix/2744-popover-classname-footer branch from 5c25ae3 to dc32e7d Compare October 20, 2026 20:16
@salesforce-cla

Copy link
Copy Markdown

Thanks for the contribution! Unfortunately we can't verify the commit author(s): Ediga, Rajesh (AGILISIUM CONSULTING LLC) <r***@A***.com>. One possible solution is to add that email to your GitHub account. Alternatively you can change your commits to another email and force push the change. After getting your commits associated with your GitHub account, sign the Salesforce Inc. Contributor License Agreement and this Pull Request will be revalidated.

Fixes salesforce#2744 — classNameFooter was only applied when footer was set,
not when footerWalkthroughActions / stepText rendered the footer.

Co-authored-by: Cursor <[email protected]>
@rediga
rediga force-pushed the fix/2744-popover-classname-footer branch from dc32e7d to eb20352 Compare October 20, 2026 20:17
@rediga

rediga commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the review — addressed:

  • Dropped the unrelated Prettier rewrapping in popover.tsx / popover.test.jsx; the PR now only includes the walkthrough classNameFooter fix, the regression test, and the CHANGELOG entry.
  • Rebased onto master and appended the Popover fix under the existing Unreleased Fixed section.

@interactivellama ready for another look when you have a chance. Thanks!

@rediga

rediga commented Oct 28, 2026

Copy link
Copy Markdown
Contributor Author

Friendly reminder — feedback from the earlier review has been addressed (Prettier-only changes removed, rebased onto master, CHANGELOG updated). Ready for another look when you have a chance.

@interactivellama — thanks!

@interactivellama
interactivellama merged commit f49886b into salesforce:master Oct 29, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Popover classNameFooter prop is not respected when footerWalkthroughActions is specified

2 participants