Wrong Bootstrap button class applied to buttons

Wrong Bootstrap button class applied to buttons

hgf_ithgf_it Posts: 9Questions: 5Answers: 0

Link to test case **https://codepen.io/anthony-dee/pen/LYMEKMj?editors=0010**:

Description of problem: On the Download page I selected:
- Step 1: Bootstrap 3
- Step 2: DataTables
- - Extensions: Buttons with Column Visibility, HTML5 export with JSZip and Select.
- Step 3: CDN

URLs created using CDN step:

<link href="https://cdn.datatables.net/v/bs/jszip-3.10.1/dt-1.13.6/b-2.4.1/b-colvis-2.4.1/b-html5-2.4.1/sl-1.7.0/datatables.min.css" rel="stylesheet">
 
<script src="https://cdn.datatables.net/v/bs/jszip-3.10.1/dt-1.13.6/b-2.4.1/b-colvis-2.4.1/b-html5-2.4.1/sl-1.7.0/datatables.min.js"></script>

In the supplied test case everything looks normal besides the buttons which do not look like Bootstrap 3 buttons. The reason for this appears to be that the .btn-secondary class has been applied to the buttons instead of .btn-default. There might be an issue with the latest version of Buttons extension (v2.4.1 at time of writing) adding a Bootstrap 4 class instead of what should be a Bootstrap 3 class.

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    Thanks for letting me know about that! Fix committed here. It will be in the next release.

    Allan

  • hgf_ithgf_it Posts: 9Questions: 5Answers: 0

    Thanks for the quick fix! When is the next release and will it be Buttons v2.4.2? Just so I can set a reminder to update the CDN links.

    Thanks again

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    I'll make one by the end of the week. There or one or two other little things to go out with it as well.

    Allan

  • hgf_ithgf_it Posts: 9Questions: 5Answers: 0

    That's ideal, thanks

Sign In or Register to comment.