Skip to content

Instantly share code, notes, and snippets.

View mrshawnspencer's full-sized avatar

mrshawnspencer

View GitHub Profile
@mrshawnspencer
mrshawnspencer / mat-select-styling-01.txt
Last active October 15, 2019 14:46
Customizing mat-select to Remove all Underlines and the Superscript Label (Angular/Material)
/*
The mat-select options are slightly left to the start of the
::-webkit-progress-inner-element. That causes some display
problems in some instances.
This gist also maintains the width of the select options
(drop-down) so that it will allow to display the text of the
largest option (within reason) instead of displaying at 100%.
If you can get away without !important directives in your