Skip to content

Commit a79ad35

Browse files
author
dtbuild
committed
e45f9fc5b2ceab3a1df6c44d82110fa8a1111fa4 Fix: Vertical alignment in header is now consistent across styles
https://datatables.net/forums/discussion/comment/240171/#Comment_240171 Sync to source repo @e45f9fc5b2ceab3a1df6c44d82110fa8a1111fa4
1 parent caba1dc commit a79ad35

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

css/dataTables.bootstrap5.css

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
--dt-row-hover: 0, 0, 0;
77
--dt-column-ordering: 0, 0, 0;
88
--dt-header-align-items: center;
9+
--dt-header-vertical-align: middle;
910
--dt-html-background: white;
1011
}
1112
:root.dark {
@@ -329,6 +330,7 @@ table.dataTable thead td,
329330
table.dataTable tfoot th,
330331
table.dataTable tfoot td {
331332
text-align: left;
333+
vertical-align: var(--dt-header-vertical-align);
332334
}
333335
table.dataTable thead th.dt-head-left,
334336
table.dataTable thead td.dt-head-left,
@@ -411,10 +413,6 @@ table.dataTable tbody td.dt-body-nowrap {
411413
white-space: nowrap;
412414
}
413415

414-
:root {
415-
--dt-header-align-items: flex-end;
416-
}
417-
418416
/*! Bootstrap 5 integration for DataTables
419417
*
420418
* ©2020 SpryMedia Ltd, all rights reserved.

0 commit comments

Comments
 (0)