Select checkbox to low in Bootstrap 4 and 5 styling

Select checkbox to low in Bootstrap 4 and 5 styling

Wooly65Wooly65 Posts: 85Questions: 25Answers: 1

live.datatables.net/qaxocetu/1/edit?html,js,output

For Bootstrap4 and Bootstrap5 the margin-top was previously -6px but now it is set to -2px which is to low as seen in the example. For the DataTables CSS it is still set at -6px.

Select CheckBox and Bootstrap5 CSS

Select CheckBox and DataTable CSS

This question has an accepted answers - jump to answer

Answers

  • Wooly65Wooly65 Posts: 85Questions: 25Answers: 1

    live.datatables.net/qaxocetu/2/edit?css,js,output

    The link above override value back to -6 instead of -2 margin-top: -6x

    You could even tweak it more if you want.

  • allanallan Posts: 63,482Questions: 1Answers: 10,467 Site admin
    Answer ✓

    Thanks for the test case. It looks like it is the table-sm class that is mostly the issue here, although the normal styling isn't quite right either.

    Fix committed here and it will be in the nightly shortly, and the next release.

    Longer term I need to look into something a little more flexible I think!

    Allan

  • Wooly65Wooly65 Posts: 85Questions: 25Answers: 1

    Thanks for the minor adjustment, looks good.

Sign In or Register to comment.