Skip to content

Commit 3ef70bb

Browse files
authored
Table: fix combination of fixed headers and columns (#6489)
1 parent 7da4d53 commit 3ef70bb

21 files changed

Lines changed: 90 additions & 8 deletions

File tree

Source/Blazorise.AntDesign/Styles/components/_table.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,12 @@ tr.ant-table-row {
206206
}
207207
}
208208

209+
.ant-table.ant-table-fixed-header.ant-table-fixed-columns {
210+
thead th[data-fixed-position] {
211+
z-index: 12 !important;
212+
}
213+
}
214+
209215

210216
td:focus {
211217
outline: -webkit-focus-ring-color auto 1px;

Source/Blazorise.AntDesign/wwwroot/blazorise.antdesign.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3748,6 +3748,10 @@ tr.ant-table-row.ant-table-row-selectable:focus[tabindex="0"] {
37483748
right: 0;
37493749
}
37503750

3751+
.ant-table.ant-table-fixed-header.ant-table-fixed-columns thead th[data-fixed-position] {
3752+
z-index: 12 !important;
3753+
}
3754+
37513755
td:focus {
37523756
outline: -webkit-focus-ring-color auto 1px;
37533757
}

Source/Blazorise.AntDesign/wwwroot/blazorise.antdesign.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Source/Blazorise.Bootstrap/Styles/components/_table.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,14 @@ tr {
9595
}
9696
}
9797

98+
.table-fixed-header.table-fixed-columns {
99+
.table {
100+
thead th[data-fixed-position] {
101+
z-index: 12 !important;
102+
}
103+
}
104+
}
105+
98106

99107
td:focus {
100108
outline: -webkit-focus-ring-color auto 1px;

Source/Blazorise.Bootstrap/wwwroot/blazorise.bootstrap.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2292,6 +2292,10 @@ tr.table-row-selectable:focus[tabindex="0"] {
22922292
right: 0;
22932293
}
22942294

2295+
.table-fixed-header.table-fixed-columns .table thead th[data-fixed-position] {
2296+
z-index: 12 !important;
2297+
}
2298+
22952299
td:focus {
22962300
outline: -webkit-focus-ring-color auto 1px;
22972301
}

Source/Blazorise.Bootstrap/wwwroot/blazorise.bootstrap.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Source/Blazorise.Bootstrap5/Styles/components/_table.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,14 @@ tr {
106106
}
107107
}
108108

109+
.table-fixed-header.table-fixed-columns {
110+
> .table {
111+
> thead > tr > th[data-fixed-position] {
112+
z-index: 12 !important;
113+
}
114+
}
115+
}
116+
109117

110118
td:focus {
111119
outline: -webkit-focus-ring-color auto 1px;

Source/Blazorise.Bootstrap5/wwwroot/blazorise.bootstrap5.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1847,6 +1847,10 @@ tr.table-row-selectable:focus[tabindex="0"] {
18471847
border-inline-start-width: 1px;
18481848
}
18491849

1850+
.table-fixed-header.table-fixed-columns > .table > thead > tr > th[data-fixed-position] {
1851+
z-index: 12 !important;
1852+
}
1853+
18501854
td:focus {
18511855
outline: -webkit-focus-ring-color auto 1px;
18521856
}

Source/Blazorise.Bootstrap5/wwwroot/blazorise.bootstrap5.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Source/Blazorise.Bulma/Styles/components/_table.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@ tr {
9797
}
9898
}
9999

100+
.table-container-fixed-header.table-container-fixed-columns {
101+
.table {
102+
thead th[data-fixed-position] {
103+
z-index: 12 !important;
104+
}
105+
}
106+
}
107+
100108
td:focus {
101109
outline: -webkit-focus-ring-color auto 1px;
102110
}

0 commit comments

Comments
 (0)