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. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
@filzrev any opinion on this? Also the default |
Beta Was this translation helpful? Give feedback.
-
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)
} |
Beta Was this translation helpful? Give feedback.
-
The modern template renders table with these classes
table table-bordered table-condensed
.Would it be possible to include
table-striped
for better readability?An example old version vs new version.
Beta Was this translation helpful? Give feedback.
All reactions