-
Notifications
You must be signed in to change notification settings - Fork 288
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
UIButton: add bool inputs #4893
Conversation
35b10fb
to
66faf50
Compare
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 tested this locally with the sample button you shared and noticed that the button moves a bit when it's clicked and think you might need to disableRipple
(lol) at the dropdown button:
from a design perspective, i'm not sure it makes sense that the boolean dropdown takes up so much real estate, given that there's only one option ever going to be displayed there. i wonder if making the width smaller would improve it:
(i'd also be curious about what a toggle control would look like here, instead of a checkbox, because this input is functioning more like an on/off switch, but i don't want to open up a can of design worms! i think it's fine for now.)
github doesn't have :lolsob: :( |
It looks like the width in that screenshot is determined by the popup's title, so we'd presumably shrink the font or wrap it?
Yeah, that sounds nice. And also maybe give me an excuse to animate our existing toggles :) |
Allows buttons to have bool inputs, e.g.
Decided to add this since
--dry-run
makes for a good exampleThe
TrueString
/FalseString
fields inUIBoolInputSpec
is for convenience to allow direct substitution in stuff like this:rather than having to do stuff like
$(if [[ $DRY_RUN == true ]]; then echo --dry-run; fi)
in the command.