Skip to content

fix: Use a select when parameter input has many options #3762

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

Merged
merged 1 commit into from
Aug 30, 2022

Conversation

BrunoQuaresma
Copy link
Collaborator

Before:
Screen Shot 2022-08-30 at 15 53 31

After:
Screen Shot 2022-08-30 at 15 52 14

Why?
Radio groups look nice but when it is about 10+ items, it starts to occupy too much vertical space. Fixes #3744

@BrunoQuaresma BrunoQuaresma requested a review from a team as a code owner August 30, 2022 18:55
@BrunoQuaresma BrunoQuaresma requested review from jsjoeio and removed request for a team August 30, 2022 18:55
@BrunoQuaresma BrunoQuaresma self-assigned this Aug 30, 2022
@BrunoQuaresma BrunoQuaresma enabled auto-merge (squash) August 30, 2022 19:08
Copy link
Contributor

@jsjoeio jsjoeio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! This is a great UX improvement too 🔥

@BrunoQuaresma BrunoQuaresma merged commit 02c0100 into main Aug 30, 2022
@BrunoQuaresma BrunoQuaresma deleted the bq/fix-3744 branch August 30, 2022 22:56
@@ -1,4 +1,5 @@
import FormControlLabel from "@material-ui/core/FormControlLabel"
import MenuItem from "@material-ui/core/MenuItem"
import Radio from "@material-ui/core/Radio"
import RadioGroup from "@material-ui/core/RadioGroup"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RadioGroup is not being used anymore. Suggested to remove import.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is for the boolean types

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nicer UI for multiple template options
3 participants