Select for BS5 does not handle table variants

Select for BS5 does not handle table variants

largelarge Posts: 2Questions: 1Answers: 0

See issue created:
https://github.com/DataTables/Dist-DataTables-Select-Bootstrap5/issues/1

Example of challenge:
http://live.datatables.net/huhaciwu/1/edit

When using BS5 table variants like "table-light", "table-dark" etc select does not draw/coloring as expected.
See example http://live.datatables.net/huhaciwu/1/edit (with and without table variant enable)

Default BS5 sets the --bs-table-bg: transparent, but when you use "table-light" then coloring is --bs-table-bg: #f8f9fa;

Tried to put "!important" behind the coloring of "background-color" in the select.bootstrap5.css, without any effect.
Is this a known bug?

This question has an accepted answers - jump to answer

Answers

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

    Hi,

    Thanks for your message. As I noted in the Github issue, you are correct. DataTables Bootstrap 5 integration does not currently take into account the table variants that Bootstrap 5 offers, nor its CSS variables. We will support these in future, but don't have a timeline for it yet.

    Allan

Sign In or Register to comment.