Skip to content

Broken checkbox design since 3.1.0 #3

Open

Description

@Seb33300

Since this commit: b5c7e99

The design of checkboxes is broken

BEFORE:

Image

AFTER:

Image

See Bootstrap 5 design:
https://getbootstrap.com/docs/5.3/forms/checks-radios/#checks

Activity

  1. AllanJard commented on Aug 27, 2025

    @AllanJard
    Contributor

    Hi - thanks for letting me know about this. It doesn't look quite that bad for me for some reason, however I completely agree that it doesn't match the Bootstrap styling, which it probably should.

    I've made this commit to address the issue and this demo shows the update. The issue now is that the checkbox really doesn't look great against the selected row's background colour, since they are basically the same. There Bootstrap's very subtle border, but it doesn't look quite right to me.

    Thoughts welcome on how to resolve that!

  2. jkittner commented on Oct 14, 2025

    @jkittner

    For me in every version after 3.1.0 the checkboxes are broken:

    Before (on version 3.1.0):

    Image

    After (on version 3.1.3);

    Image
  3. AllanJard commented on Oct 14, 2025

    @AllanJard
    Contributor

    It seems to work okay here: https://live.datatables.net/selukaji/1/edit .

    Can you link to a test case showing the issue please?

  4. dmg-caleb commented on Nov 19, 2026

    @dmg-caleb

    It looks to me like in your https://live.datatables.net/selukaji/1/edit link, you are using version 2 of datatables and 5.3.0 for bootstrap.
    The download builder here https://datatables.net/download/ will give the newest version of bootstrap (5.3.8) and the plugin does not correctly style either the checkboxes or the selected row (it should be .table-active).

  5. AllanJard commented on Nov 19, 2026

    @AllanJard
    Contributor

    I did use DataTables 2 in the link, as that was the current release at the time I wrote my previous reply.

    Here is the updated test case with Bootstrap 5.3.9, DataTables 3.1.5 and Select 4.1.1. All the current releases at the time of writing this. The checkboxes appear to show okay for me.

    Can you link to a test case showing the issue please?

    Edit - forgot the link. Added now.

  6. dmg-caleb commented on Nov 19, 2026

    @dmg-caleb

    They do not appear correct in your updated test case. They are showing as standard HTML checkboxes, not Bootstrap checkboxes.

    Your output:
    image

    BS5:
    image

    Upon inspect in your test case (https://live.datatables.net/selukaji/5/edit), you can see that the Bootstrap 5 styles for the checkboxes are being overwritten.
    Unchecking all of the styles from the table.dataTable input.dt-select-checkbox allows the checkboxes to appear as they should.
    image

  7. AllanJard commented on Nov 19, 2026

    @AllanJard
    Contributor

    I see what you mean, and yes, I agree. I'll look into that. Thanks for the clarification.

  8. dmg-caleb commented on Nov 19, 2026

    @dmg-caleb

    No problem! I look forward to a potential fix :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions