-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lib-classifier: Refactor survey task Choice and Questions styling #6478
base: lib-classifier_survey-task-design-changes
Are you sure you want to change the base?
lib-classifier: Refactor survey task Choice and Questions styling #6478
Conversation
packages/lib-classifier/src/plugins/tasks/survey/components/components/Choice/Choice.js
Outdated
Show resolved
Hide resolved
<StyledButton | ||
fill='horizontal' | ||
label={t('SurveyTask.Choice.cancel')} | ||
onClick={() => handleDelete(choiceId)} | ||
/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously, if a previously selected choice was selected again, then "Not this" deleted that choice selection. Should "Cancel" still have the same delete choice selection action for previously selected choices?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really good catch. I think with the coming change to deselecting Choices, the Cancel button can simply close the Choice box and not delete.
This is looking really good! A couple of very minor styling tweaks, including the few we discussed. As discussed:
New issues:
Dark Mode:
|
Package
Linked Issue and/or Talk Post
Describe your changes
How to Review
Helpful explanations that will make your reviewer happy:
Checklist
PR Creator - Please cater the checklist to fit the review needed for your code changes.
PR Reviewer - Use the checklist during your review. Each point should be checkmarked or discussed before PR approval.
General
yarn panic && yarn bootstrap
ordocker-compose up --build
and FEM works as expectedGeneral UX
Example Staging Project: i-fancy-cats
Refactoring
Post-merge