Problem/Motivation
CSS rules not applied to form button => button misaligned
Steps to reproduce
Drupal 9 with Bootstrap Barrio 5.5.6
Proposed resolution
replace ".form-row" with "row" in scss/components/form.scss file
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | add-form-wrapper-3311048-16.patch | 914 bytes | fanton |
Issue fork bootstrap_barrio-3311048
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3311048-.form-row-still-in
changes, plain diff MR !29
Comments
Comment #2
shyam_bhattPlease check the patch. ".form-row" replaced with "row" in scss/components/form.scss file.
Comment #3
miyukiFYI, the patch successfully makes changes to
scss/components/form.scss, but notcss/components/form.css.Comment #5
hatuhay commentedComment #6
jurgenhaasThis approach breaks a lot of other things, because the selector
.row > divaffects almost everything in a BS layout. Example: it overwrites padding, flex and width definitions for all sidebars that have a class like e.g.col-md-4Comment #8
jurgenhaasThe attached MR makes sure, that those selectors only work inside of forms, not globally.
Comment #9
shyam_bhatt@jurgenhaas yes adding a form wrapper will be more accurate. "MR !29" looks fine to me.
Comment #10
crutch commentednot using scss, getting error with this patch. Trying to resolve #6
Error: Call to a member function addClass() on array in bootstrap_barrio_preprocess_input() (line 736 of themes\contrib\bootstrap_barrio\bootstrap_barrio.theme).
manually changing form.css line 18 and 19 to
fixes the issue with no errors.
Comment #11
shyam_bhattComment #13
super_romeo commentedComment #14
super_romeo commentedProblem persist in new release. Please see related issue.
Comment #15
fantonComment #16
fantonPlease check the patch. I wrapped ".row" with "form" in scss/components/from.scss file.