Home:ALL Converter>Bootstrap-vue Tab style

Bootstrap-vue Tab style

Ask Time:2018-03-28T01:01:26         Author:lmcadory

Json Formatter

I'm having trouble overriding bootstrap styles in my single file component when using bootstrap-vue

My file looks like this:

<template>
  <b-tabs pills vertical>
    <b-tab title="This title" title-item-class="mytab" acitve>
      Some tab
    </b-tab>
    <b-tab title="This title 2" title-item-class="mytab">
      Some other tab
    </b-tab>
 </b-tabs>
</template>
<script>
export default {}
</script>
<style lang="less" scoped>
  
  .nav-pills .mytab .nav-link:not(.active) {
    background-color: red !important;
  }
  
  .nav-pills .mytab .nav-link {
    background-color: blue !important;
  }
  
  .tab-content > .tab-pane {
    border: 1px solid;
    border-left: 0px none;
  }
</style>

Author:lmcadory,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/49518580/bootstrap-vue-tab-style
yy