Som Ramnani - refactor(FaqSection): fix dark mode & add copy contact email functionality - #5456
Open
somramnani wants to merge 2 commits into
Open
Som Ramnani - refactor(FaqSection): fix dark mode & add copy contact email functionality#5456somramnani wants to merge 2 commits into
somramnani wants to merge 2 commits into
Conversation
✅ Deploy Preview for highestgoodnetwork-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
MahalakshmiPFW
requested changes
Aug 29, 2026
MahalakshmiPFW
left a comment
There was a problem hiding this comment.
Hi! Everything works fine. The email gets copied, the FAQs are expanding correctly in both themes (dark and light). However, the Contact button is not being highlighted in the dark mode but it works when I click on it (he email is getting copied). I have attached the screenshots. Please take a look at it.
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
Related PRS (if any):
This PR is related to PR#3241.
Main changes explained:
FaqSection.jsxto apply dark mode through a single container-level CSS Module class instead of adding separate dark-mode classes to individual elements.FaqSection.module.csswith scoped dark-mode styles for FAQ questions, answers, search fields, category filters, borders, contact links, and empty states.ActivityFAQs.jsxto replace the inactive contact link with a button that copiesonecommunityglobal@gmail.comto the clipboard.react-toastifysystem. A successful copy displays “Email copied!”, while a clipboard failure displays “Failed to copy email.”ActivityFAQs.module.cssso the contact button retains the appearance of a link in both light and dark modes.FaqSection.test.jsxto cover theme selection, accordion behavior, searching, category filtering, and contact interaction.ActivityFAQs.test.jsxto verify that the correct email is copied and that the appropriate success or error toast is displayed.How to test:
som-fix/activity-faqs-dark-modenpm installand start the app locally./communityportal/activity/1/faqor replace 1 with an available activity ID.Screenshots or videos of changes:
Screen.Recording.2026-08-20.at.1.50.44.PM.mov
Note:
FaqSectioncomponent is currently not mounted by an active route, but its dark-mode styling and tests were updated for future use.onecommunityglobal@gmail.comaddress rather than an event-specific email.