Incorrect CSS Selectors for TH tags in 1.2.5 Datatables

Incorrect CSS Selectors for TH tags in 1.2.5 Datatables

BropezBropez Posts: 3Questions: 1Answers: 0
edited April 2018 in Free community support

I would like to report that there are incorrect selectors in https://cdn.datatables.net/select/1.2.5/css/select.dataTables.css.

This style sheet fails to select the appropriate TH tags because tbody is specified, rather than thead.

Example:

table.dataTable tbody th.select-checkbox:before {

Should be:

table.dataTable thead th.select-checkbox:before {

It also appears the after css to apply the checkbox tick mark is failing as well for TH checkboxes. I have not been able to find a solution for this.

table.dataTable tr.selected th.select-checkbox:after

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,723Questions: 1Answers: 10,108 Site admin

    Select doesn't operate on the table header at all. Could you clarify why you think it should?

    Allan

  • BropezBropez Posts: 3Questions: 1Answers: 0

    In previous versions, it did. There should be a checkbox in the table header to serve as a 'select all'. If select wasn't meant to operate on the table header, I find it interesting that there are so many css selectors for it.

  • kthorngrenkthorngren Posts: 20,309Questions: 26Answers: 4,769
    Answer ✓

    IIRC Select 1.2.1 had this checkbox on the header. This was considered a bug (not expected) and removed, according to this thread:
    https://datatables.net/forums/discussion/comment/105849/#Comment_105849

    Kevin

  • BropezBropez Posts: 3Questions: 1Answers: 0

    Thanks Kevin, that makes sense.

This discussion has been closed.