Reputation: 2768
In an app that uses the Buefy component library (which uses the Bulma framework for the CSS), I've got the background color for table components set like so in the variables.scss file:
$contrast: #edebe4;
$table-background-color: $contrast;
This causes all table components to be displayed with the defined background color. Now, I'd like to be able to override that color on a specific table component. I haven't found anything in the Buefy or Bulma docs that show how to do this. Is it possible?
I tried this but it didn't have any affect -
<b-table
:data="data"
:sticky-header="true"
class="has-background-white"
>
Upvotes: 0
Views: 1085
Reputation: 600
I met this case before and here is my solution:
<section id="my-table">
<b-table>
....
</b-table>
</section>
<style scoped>
#my-table .table{
background-color: white;
}
</style>
Upvotes: 0