Skip to content

Commit 3a7fa62

Browse files
author
dtbuild
committed
5a05ebd839add77d82207f90478871cb3c69546c Fix: If -init columns.className is used to define an alignment class such as dt-left, it will now take priority over the automatic type detection classes.
https://stackoverflow.com/a/74823875/1049111 Sync to source repo @5a05ebd839add77d82207f90478871cb3c69546c
1 parent 96af113 commit 3a7fa62

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

css/dataTables.bootstrap5.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,11 @@ table.dataTable th,
242242
table.dataTable td {
243243
box-sizing: border-box;
244244
}
245+
table.dataTable th.dt-type-numeric, table.dataTable th.dt-type-date,
246+
table.dataTable td.dt-type-numeric,
247+
table.dataTable td.dt-type-date {
248+
text-align: right;
249+
}
245250
table.dataTable th.dt-left,
246251
table.dataTable td.dt-left {
247252
text-align: left;
@@ -267,11 +272,6 @@ table.dataTable td.dt-empty {
267272
text-align: center;
268273
vertical-align: top;
269274
}
270-
table.dataTable th.dt-type-numeric, table.dataTable th.dt-type-date,
271-
table.dataTable td.dt-type-numeric,
272-
table.dataTable td.dt-type-date {
273-
text-align: right;
274-
}
275275
table.dataTable thead th,
276276
table.dataTable thead td,
277277
table.dataTable tfoot th,

0 commit comments

Comments
 (0)