Repository navigation
Modern Template - Table rendering #8627
Replies: 4 comments
|
Here is the commit which removed the striped class from the table: My understanding of the modern template is that it is by design less customizable. I am also looking for an answer how to configure the modern template and still getting updates. |
|
After a year, I've come to the conclusion that it would be beneficial if we could make the table class customizable for modern designs. It would be great if we could simply set the desired CSS classes in |
|
I resolved this issue by adding the necessary css to my custom css file to make all tables striped. It is copied from bootstrap. .table-bordered>tbody>tr:nth-of-type(odd)>* {
--bs-table-color-type: var(--bs-table-striped-color);
--bs-table-bg-type: var(--bs-table-striped-bg)
}
.table-bordered-columns>:not(caption)>tr>:nth-child(2n) {
--bs-table-color-type: var(--bs-table-striped-color);
--bs-table-bg-type: var(--bs-table-striped-bg)
} |
Uh oh!
There was an error while loading. Please reload this page.
The modern template renders table with these classes
table table-bordered table-condensed.Would it be possible to include
table-stripedfor better readability?An example old version vs new version.
All reactions