Fixed Columns Bootstrap 4 overrides table-striped styling (if enabled or not)

Fixed Columns Bootstrap 4 overrides table-striped styling (if enabled or not)

ctmlctml Posts: 26Questions: 9Answers: 0
edited January 2022 in FixedColumns

Link to test case:
https://jsfiddle.net/jzhrvq5x/11/

Taken from the examples and removed table-striped: https://datatables.net/extensions/fixedcolumns/examples/styling/bootstrap4.html

Description of problem:
Fixed columns for bootstrap 4 includes CSS that changes row style to appear as though the table is striped even when the style has not been set on the table. If the table is set to be striped, the fixed columns row colouring is still different shade than a regular striped bootstrap 4 table.

Unsure if it's related to this one https://datatables.net/forums/discussion/comment/195457/#Comment_195457

Thanks for taking a look!

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin
    Answer ✓

    Many thanks for pointing that out! There were a few errors in the Bootstrap styling integration unfortunately. I've just committed a change to address this and tables without table-striped will work correctly if you use the updated stylesheet.

    The nightly will be up to date with that change in the next few minutes.

    Allan

  • ctmlctml Posts: 26Questions: 9Answers: 0

    Thanks for the quick fix @allan, works like a charm!

Sign In or Register to comment.