I have this select in angular material:
Its code :
If you can solve your style issues with the material 2 scss theming that would be the "right" way hears is a link to there site. https://material.angular.io/guide/theming.
However I used !important on the styles I didn't want materials styles to overwrite.
Here is how I used it:
/*hack to get rid of a scrollbar*/
.cdk-focus-trap-content{
overflow-x: hidden !important;
}
/*hack to get rid of a padding on the popup*/
.mat-dialog-container{
padding: 0px !important;
}
I had a situation where a horizontal scroll bar was showing up in the md-sidenav and I got rid of their default padding on the md-dialog.
Not the most elegant solution but I hope this helps.
This is another StackOverflow question that discusses what !important is.
What does !important in CSS mean?