Boostrap 5 - Table bordered not working
The bootstrap " table-bordered " is not working in the HTML theme. Is there an other option to show this instead of hard-coding custom css?
Replies (3)
Hi,
Here you can check all available table border styles. We will revise the original Bootstrap 5 bordered style in the next update. Currently, Metronic's custom style overrides Bootsrap's original bordered style.
Regards.
I see, is it possible to add it now with a work around?
Hi,
Can you please edit core/html/src/sass/components/_tables.scss
and change the first class filter from:
// Table
.table {
}
to:
// Table
.table:not(.table-bordered) {
}
Then recompile your assets folder with Gulp or Webpack.
Please note that the build tools are required only in the development environment just to compile the assets when the source folder files are modified. In the hosting/server deployment you will only need the compile assets, no need to install the build tools dependencies there.
Regards,
Sean