Skip to content

Commit 1caf078

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 db4d7c3 commit 1caf078

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

css/dataTables.jqueryui.css

Lines changed: 3 additions & 0 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 {
@@ -79,6 +80,7 @@ div.dt-scroll-body tfoot tr td div.dt-scroll-sizing {
7980
--dt-row-hover: 0, 0, 0;
8081
--dt-column-ordering: 0, 0, 0;
8182
--dt-header-align-items: center;
83+
--dt-header-vertical-align: middle;
8284
--dt-html-background: white;
8385
}
8486
:root.dark {
@@ -402,6 +404,7 @@ table.dataTable thead td,
402404
table.dataTable tfoot th,
403405
table.dataTable tfoot td {
404406
text-align: left;
407+
vertical-align: var(--dt-header-vertical-align);
405408
}
406409
table.dataTable thead th.dt-head-left,
407410
table.dataTable thead td.dt-head-left,

0 commit comments

Comments
 (0)