-
-
Notifications
You must be signed in to change notification settings - Fork 205
refactor(analysis): migrate select one form to mantine DEV-1169 #6462
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
base: main
Are you sure you want to change the base?
Conversation
| <Stack gap={'xs'}> | ||
| {getOptions().map((option) => ( | ||
| <Radio | ||
| value={option.value} | ||
| label={option.label} | ||
| onChange={(newResponse) => onRadioChange(newResponse.currentTarget.value)} | ||
| checked={response === option.value} | ||
| /> | ||
| ))} | ||
| </Stack> |
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.
magicznyleszek
left a comment
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.
Generaly works fine (tested), but I have some more general questions :)
| /> | ||
| <Stack gap={'xs'}> | ||
| {getOptions().map((option) => ( | ||
| <Radio |
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.
I noticed that Radio doesn't have pointer cursor
jsapp/js/components/processing/analysis/responseForms/selectOneResponseForm.component.tsx
Show resolved
Hide resolved
a0969cd to
d76a4ea
Compare
d76a4ea to
d1bde78
Compare
🗒️ Checklist
#Support Docs Updates, if any<type>(<scope>)<!>: <title> DEV-1234Front endand/orBack endorworkflow💭 Notes
The "best" solution would probably be to refactor all of
radio.tsxto mantine, but that creates a bigger problem than this scope. Ourradio.tsx(not using mantine) has the ability to de-select options, if we convert it to use mantineRadio, then there will be a regression to this feature. To offset this for the qualitative analysis project we introduced a clear button--this has not been done everywhere aradio.tsxis being used. Further investigation into this is needed, but out of scope of this PR👀 Preview steps