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
Fixed input group size in Bootstrap 4 #1114
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1114 +/- ##
=======================================
Coverage 97.24% 97.25%
=======================================
Files 23 23
Lines 2836 2844 +8
Branches 243 243
=======================================
+ Hits 2758 2766 +8
Misses 38 38
Partials 40 40
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
2dd8847
to
6972948
Compare
OK -- I've trimmed this down to just the append and related classes. We can come back to "with buttons" as a separate change. |
I'll review it, latest on the next weekend and probably and earlier :-) |
No rush! 🙂 |
PrependedText('field_name', StrictButton("Go!"), css_class="input-sm") | ||
PrependedText('field_name', StrictButton("Go!"), css_class="input-lg") | ||
|
||
# Bootstrap 4 - Wrapping div needs size class. Use `input_size`. |
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.
If we don't pass input_size
what happens? I thought that it all still works with the default Bootstrap size, right?
Perhaps this could be added here stating that input_size
is optional, but that if it's passed then it's used in certain way?
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.
@cpina -- you are right but I'm struggling to find the right way to say this succinctly. Can you have a look at my next itteration here?
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 like it - thanks!
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've left two small comments about documentation - all the code looks good to me!
@cpina this is still WIP, but thought it worth sharing more publicly my progress with this. Notes:
input_size
is spot on. I think we need this for the append inputs as wellField_with_buttons
I've not really looked at. Tempted to chop it from this PR and get the rest of it merged.