-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Unable to set styles on md-list-item #2012
Comments
Adds a `display: block` to the list items, in order to prevent them from collapsing. This allows users to set a custom background directly on the list item. Fixes angular#2012.
@johnrbaur That's because the |
Adds a `display: block` to the list items, in order to prevent them from collapsing. This allows users to set a custom background directly on the list item. Fixes #2012.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
Bug
What is the expected behavior?
Adding a style or class to an anchor tag with the md-list-item directive should modify the style of the list item.
What is the current behavior?
The style/class is applied to the anchor tag, but not to the inner div elements created by the directive. The applied style is not visible on the page.
What are the steps to reproduce?
http://plnkr.co/edit/B0LLmc7We95gMAuySZbv?p=preview
What is the use-case or motivation for changing an existing behavior?
Adding style to indicate the currently selected item
Which versions of Angular, Material, OS, browsers are affected?
All?
The text was updated successfully, but these errors were encountered: