-
Notifications
You must be signed in to change notification settings - Fork 316
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
Radio buttons #177
base: main
Are you sure you want to change the base?
Radio buttons #177
Conversation
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! |
@@ -75,6 +75,7 @@ export const classNameGenerator: ClassNameGenerator = ({ | |||
case 'FormFieldBoolean': | |||
case 'FormFieldSelect': | |||
case 'FormFieldSelectSearch': | |||
case 'FormFieldRadio': |
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.
looking at your screenshot vs the bootstrap docs for Radios it appears you're missing some styling.
I think you need ot add some more classes here for radios, perhaps form-check
, form-check-input
and form-check-label
?
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.
Overall, this is looking pretty good, thank you. |
description=schema.get('description'), | ||
) | ||
options = [SelectOption(value=v, label=enum_labels.get(v) or as_title(v)) for v in enum] | ||
if schema.get('mode') == 'radio' and multiple: |
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.
addding this currently breaks the demo - as it appears that the json_schema
param leak as well to the next component (which is a multiple
)
i think similar to #178
Hi thanks again for the amazing project,
here's a trial of contribution - to be caveated i am very new to react / JS so there might very well be better ways to do this
but hope it helps.
trying to implement radio as described in issue: #160
Currrently it looks like this: