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.
Steps to reproduce on vanilla site
- define a new content type TEST
- add entity reference field, autocomplete on bundle basic pages, # of values unlimited (this created the table)
- create several basic pages with similar name i.e test1, test2, test3 ...
- create new content of type TEST
Inspect the table with the entity reference field, notice the classes
field-multiple-table
table
table-hover
table-striped
table
table-hover
table-striped
sticky-enabled
tabledrag-processed
tableheader-processed
sticky-table
Comments
Comment #2
sylus CreditAttribution: sylus commentedThis was a known problem in bootstrap before the 3.4 release. This was fixed as of WxT 4.2.
Comment #3
mxlav CreditAttribution: mxlav commentedjust tested this on a simpletest.me site of wetkit 4.2, still has double set of classes
Comment #4
mxlav CreditAttribution: mxlav commentedComment #5
sylus CreditAttribution: sylus commentedOkay usually when I see double classes it was related to this issue in bootstrap but that regression was fixed and applied to pretty much every class on the site.
This looks like it is only affecting a subset of classes as not ever class is duplicated. It looks to me like both bootstrap + wetkit_bootstrap are adding the same classes though the sub-theme should be overriding.
I'd bet if you went to wetkit_bootstrap_preprocess_table() and commented out the following code you would only have a single set of classes.
This would then let only bootstrap's table.func.php be called.
Comment #6
sylus CreditAttribution: sylus commentedComment #7
mxlav CreditAttribution: mxlav commentedcommenting out that line did indeed remove the double classes.
Comment #8
sylus CreditAttribution: sylus commentedOkay I am going to remove that for now until we have the actual need to override bootstrap's default settings which are already aligned with:
http://wet-boew.github.io/wet-boew-styleguide/v4/design/tables-en.html
Thanks a bunch! Appreciated!