How do I properly apply a different color to the whole table or a row in 5.3.0? #38690
-
Before 5.3.0 I used simply adding <table class="table text-muted">
...
</table>
<table class="table">
<tr class="text-muted">
...
</tr>
</table> For example if I have the following cases what should be the proper SCSS for the <table class="table custom">
...
</table>
<table class="table">
<tr class="custom">
...
</tr>
</table> For now the best I could achieve is the following: .custom {
color: red;
--bs-table-color: red;
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hey @lipis .table-text-body-secondary {
--bs-table-color: #{$body-secondary-color};
} And then use (/cc @louismaximepiton might be a side effect of https://github.com/twbs/bootstrap/pull/37084/files that wasn't planned) |
Beta Was this translation helpful? Give feedback.
Hey again,
thanks a lot for your perseverance. Can you provide a CodePen or StackBlitz of your not working example because I tried this on my side and it seems to work pretty well 🤔
Regards