background color disappears after short flash

background color disappears after short flash

atelieragileatelieragile Posts: 1Questions: 1Answers: 0

When including the Fixed Columns with Bootstrap 4 the row background colors disappear. On inspecting in Chrome Dev Tools the correct BG color shows, but is not displayed. Even a style attribute inside the tr tag is ignored. The correct background color flashes shorty though.

https://codepen.io/atelier-agile/pen/ZEJVjjE

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    Answer ✓

    Bootstrap 4 applies its background colours to the td elements which is why you are seeing what you are (nothing to do with DataTables of FixedHeader). The effect is that the td background is overlaying the tr background.

    To workaround it you'd need to target your background to the td cells: http://live.datatables.net/vedukovu/2/edit .

    Allan

Sign In or Register to comment.