How to overrule b-dropdown classes in .vue component?
See original GitHub issueHello!
I would like to overrule the border and caret of a b-dropdown classes within a component. In Chrome-developer I see the .btn-secondary class from which I can alter for example color or border. In my code I use for example but it has no effect. What am I doing wrong?
When I put this code in App.vue it works…
<style scoped>
.btn-secondary {
color: red;
border-color: yellow;
}
</style>
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Dropdown | Components - BootstrapVue
Turn your dropdown menu into a drop-right menu by setting the dropright prop. Or, turn it into a drop-left menu by setting the...
Read more >Vue SPA overrides dropdown - Stack Overflow
I'm building a, SPA with Vue JS, and I'm having some problems with my Sidebar component. The default functionality of my Dropdown -...
Read more >CSS Variables - Vue Select
# Overriding Default Styles ... Vue Select takes the approach of using selectors with a single level of specificity, while using classes that...
Read more >Vue Dropdowns - examples & tutorial. Bootstrap & Material ...
Responsive Vue Dropdowns built with the latest Bootstrap 5. ... falsy ref value to MDBDropdownMenu and toggle dropdown with a MDBDropdownToggle component.
Read more >Override click event | Vue Forums - Syncfusion
Forum Thread - Override click event - Vue. ... Whenever I hit that element, the dropdown opens first. I tried overriding ... <div...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It is basic cascading styles (CSS)
Add a class to your
b-dropdown
component (i.e. ‘<b-dropdown class=“my-dropdown” … >’),Then target the inner parts as such with your style overrides:
Scoped styles won’t work in BV components