Select extension CSS bug

Select extension CSS bug

cburgcburg Posts: 2Questions: 1Answers: 0

In the current Select extension CSS (https://cdn.datatables.net/select/1.2.5/css/select.dataTables.min.css), the th.select-checkbox selector is incorrectly combined with the tbody tag selector as follows:

table.dataTable tbody th.select-checkbox

SInce th is a descendant of thead rather than tbody, the th.select-checkbox styling never gets applied. So table.dataTable tbody th.select-checkbox should be replaced with table.dataTable thead th.select-checkbox in the Select extension CSS.

Answers

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin

    A th element inside the tbody is actually valid HTML (and indeed can make good semantic sense sometimes - headers down a column for example). Select doesn't currently do anything with a checkbox in the header, which is why it explicitly doesn't show the checkbox in the header (there was an earlier version which missed the tbody qualifier, and of course everything thought it was a "check all" - it didn't do anything).

    Allan

This discussion has been closed.