-
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 styling #6478
base: master
Are you sure you want to change the base?
Conversation
const InfoLabel = ( | ||
<Box | ||
direction='row' | ||
gap='xsmall' | ||
> | ||
{showInfo ? ( | ||
<> | ||
<Text>{t('SurveyTask.Choice.lessInfo')}</Text> | ||
<FormUp /> | ||
</> | ||
) : ( | ||
<> | ||
<Text>{t('SurveyTask.Choice.moreInfo')}</Text> | ||
<FormDown /> | ||
</> | ||
)} | ||
</Box> | ||
) |
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.
The text and icon alignment isn't quite right, needs a little adjustment.
<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?
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