Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Screenshot should say it all. I'll temporarily add some margin to my theme but would be nice to know if that's bug from webforms part?
Comment | File | Size | Author |
---|---|---|---|
#12 | Screenshot 2018-01-24 12.07.13.png | 78 KB | rpataca |
#7 | 2935934-7.patch | 2.05 KB | markhalliwell |
Screen Shot 2018-01-11 at 15.51.19.png | 497.07 KB | hkirsman |
Comments
Comment #2
hkirsman CreditAttribution: hkirsman commentedComment #3
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedTextareas are native Drupal form elements. This sounds like a Bootstrap CSS specific bug.
I am moving this to the Bootstrap issue queue and will follow it just in-case this is a Webform related issue.
Comment #4
hkirsman CreditAttribution: hkirsman commentedFor additional information, here's an example from Bootstrap: https://getbootstrap.com/docs/3.3/css/#forms-example
All inputs have form-group class.
Although version 4 example, also has form-group around textarea:
https://getbootstrap.com/docs/4.0/components/forms/#form-controls
Comment #5
hkirsman CreditAttribution: hkirsman commentedComment #6
markhalliwellI took some time to step through the code. It appears that, in an effort to keep the text_format textarea styling together (the format select element and help text below CKEditor), a generalized exclusion of all textareas was added.
I'll commit a fix for this shortly.
Comment #7
markhalliwellComment #9
hkirsman CreditAttribution: hkirsman commentedWoks and already in release. Thank you!
Comment #10
rpataca CreditAttribution: rpataca commentedLooks like this is working for type: textarea but not for type: text_format.
Comment #11
markhalliwellYes, because text_format has its own wrapper div. Adding it to a textarea inside it breaks the illusion of the bordered wrapper. That's what this entire issue was about.
Comment #12
rpataca CreditAttribution: rpataca commentedGotcha. Is there a proposed solution for added that margin/spacing between text_format elements without custom css or a preprocessor?
Comment #13
markhalliwellNo. I suppose you could create a new issue to add margin-bottom to http://cgit.drupalcode.org/bootstrap/tree/starterkits/sass/scss/componen... now. Text formats are in their own wrappers, so http://cgit.drupalcode.org/bootstrap/tree/starterkits/sass/scss/_overrid... removes the margin-bottom that
.form-group
normally receives (edit: because it's always a::last-child
element)