Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
traffic-nz opened this issue Jan 27, 2017 · 0 comments
Open

Comments

@traffic-nz
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant