material2-app icon indicating copy to clipboard operation
material2-app copied to clipboard

Customise the width of dropdowns to match the width of each select

Open traffic-nz opened this issue 8 years ago • 0 comments

So far, the only way I've found to customise the width of the dropdowns is to add a class to md-option and then add the custom width to the select.component.ts file... which is terrible practice. Ideally, the width of the dropdowns should be the same with as md-select component, or at least be able to grab styles from the select.component.scss file.

For example, I've had to add this to the select.component.ts file:

style-workaround

I should be adding these styles to the select.component.scss file like this instead, but it doesn't do anything.

style

Is there a better way to have custom widths or get the dropdown widths to match the width of the select component?

traffic-nz avatar Jan 27 '17 00:01 traffic-nz