Teemu/enhancement/637 feedbackcard update and interactive tooltips#639
Teemu/enhancement/637 feedbackcard update and interactive tooltips#639temez26 wants to merge 6 commits into
Conversation
…and related rating placeholders, updated i18n jsons related to feedbackcard, added text areafield to the customform for more customasiable inputform. Almost ready just needs some fine tuning and confirmation what the english text needs to be.
…at appeared when selecting the emoji
There was a problem hiding this comment.
Good work! Unfortunately the original issue might have been a bit misleading, since the given Figma Design example is meant to be toggled via feedback button. (unless im mistaken @Rutjake ?) However the only differences between toggle vs footer applied feedback component really is the border😄
Todo:
- Remove borders from component if its implemented inside footer.
- Adjust components layout so it looks more clean. (see example)
ratingLabels go off-center on small devices, fix by detaching the arrow and center it to emoji... or figure something else. (see example)- Remove inline styling unless its setting CSS via variables.
Examples:
Feedback layout adjusted by fit-content and div filling the extra space, since the ratingLabels are absolute and don't contribute to flex:
https://github.com/user-attachments/assets/add71c85-c841-436b-90cc-35e1857d3131
ratingLabel off-center:
You’re absolutely right. The original issue was a bit misleading, and I apologize for the lack of clarity in the initial description. |
|
Alright, I will look into it at some point. |
📄 Pull Request Overview
Closes #637
🔧 Changes Made
FeedbackCard overhaul: Refactored
FeedbackCardto use the newFeedbackCardSuccesscomponent for the post-submission view, which displays the selected emoji rating and links to full feedback forms (web & game). Added dynamic, rating-aware input placeholders that change based on the selected emoji.Interactive emoji tooltips: Updated
FeedbackEmojito render a speech-bubble style rating label (e.g. "Bad", "Meh..", "OK", "Good", "Great") below the selected emoji, with dynamic horizontal positioning. Emoji can now be deselected by clicking again.New
FeedbackCardSuccesscomponent: Created newFeedbackCardSuccesscomponent and its SCSS module to handle the success state UI after feedback submission.CustomForm.TextareaFieldadded: Extended theCustomFormcompound component with a newTextareaFieldsub-component for more flexible, accessible multi-line text input in forms.i18n updates: Updated feedbackCard.json localization files with shorter, cleaner sentences and added new keys:
rating-label-1throughrating-label-5,input-placeholder-1throughinput-placeholder-5,error-submit-failed,href-to-webform, andhref-to-gameform.✅ Checklist Before Submission
console.log()or other debugging statements are left.📝 Additional Information
FeedbackCardSuccessview.