-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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 style encapsulated components #922
Comments
We're still working on theming (see #123) and general strategy for component customization. Stay tuned for more info in the future! |
You can get at them with either /deep/ or >>> (even though they are deprecated in CSS) angular supports them. see the page on styling on the angular.io site |
Now also deprecated in Angular! |
But you can still use ::ng-deep |
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. |
In the example below I use the list component and try to apply a background color on list items when the item is hovered. However
_ngcontent
attributes are added to my CSS selectors and some of the elements generated HTML seems to not receive this attribute making impossible to apply any style to it.http://plnkr.co/edit/Sgr8DI9hWnOItPWR9Tva?p=preview
Original Style
I've tried different rules just in case...
Injected Style
Generated HTML
I can't find a way to match the generated
div.md-list-item
from the component style.The text was updated successfully, but these errors were encountered: