Repository navigation
fix(popover): apply classNameFooter to walkthrough footers - #3246
interactivellama merged 2 commits into
Conversation
|
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. |
|
@interactivellama Could you please review this fix for #2744 when you have a chance? Thanks! |
|
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. |
5c25ae3 to
dc32e7d
Compare
|
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]>
dc32e7d to
eb20352
Compare
|
Thanks for the review — addressed:
@interactivellama ready for another look when you have a chance. Thanks! |
|
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! |
Fixes #2744
Additional description
When a Popover uses
footerWalkthroughActions/stepText(walkthrough footer path),classNameFooter(and deprecatedfooterClassName) were ignored. Those classes were only applied when the genericfooterprop rendered the footer element.This aligns the walkthrough footer path with the documented
classNameFooterbehavior and with thefooterrendering path.Regression test: asserts
.slds-popover__footerreceivesclassNameFooterwhenfooterWalkthroughActionsis 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 lintpasses with 0 errors (npm run lint:fixto auto-fix). Warnings are the tracked gradual-migration backlog; do not add new errors. (pre-commit ran eslint --fix + prettier)npm run typecheckis clean (tsc --noEmit).npm test -- --runfor the affected suite passes —components/popover/__tests__/popover.test.jsx(9 tests).npm run buildsucceeds (type-check + Vite library build +.d.ts+ entry shims).Behavior & docs:
#2744).REVIEWER checklist (do not remove)
CIworkflow: lint, typecheck, test, build). Chromatic visual review, if configured, has been checked.components/__tests__/__snapshots__/story-snapshots.test.jsx.snap).