override css
See original GitHub issueSorry if this is more a support question but I need to override the component css. What would be the best approach in combination with Bootstrap I tried this…
.ng-select {
border:0px;
min-height: 0px;
border-radius: 0;
}
.ng-control {
min-height: 0px;
border-radius: 0;
}
:host-context(.selectcustom) .ng-control {
min-height: 0px;
border-radius: 0;
}
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
How to Override CSS Styles - W3docs
Example of overriding CSS style with the Class selector: ... Here, the Class selector overrode the ID selector because it was the last...
Read more >CSS Overriding Variables - W3Schools
Override Global Variable With Local Variable. From the previous page we have learned that global variables can be accessed/used through the entire document, ......
Read more >How to override the properties of a CSS class using another ...
You should override by increasing Specificity of your styling. There are different ways of increasing the Specificity. Usage of ...
Read more >Specificity - CSS: Cascading Style Sheets - MDN Web Docs
The only way to override inline styles is by using !important . Many JavaScript frameworks and libraries add inline styles. Using !important ...
Read more >How to override CSS style from another style
The order of specificity preference when overriding a CSS style. When multiple CSS rules reference the same HTML element, the browser needs ...
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
If you are using ViewEncapsulation, your should use special
::ng-deep
selector which will prevent scoping for nested selectors.https://www.npmjs.com/package/@ng-select/ng-select
I think best approach would be adding custom class on
ng-select
and then applying your own styles. Try this: