-
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
Turn md-card element to mdCard Directive to give other elements 'Card powers' #6739
Comments
Unfortunately its not possible to have Furthermore, if the templating were to be removed, styles cannot be applied via Directive selectors as shown in the documentation for the If you are looking to provide the elevated look of the |
To supplement @josephperrott's answer, material provides a <div class="mat-elevation-z12">I am an elevated div</div>
<div class="elevate-me">Me too!</div> .elevate-me {
@include mat-elevation(8);
} See #3917 for in-progress guide |
Elevation is not the only feature that a card provides... If I only wanted a All the elements ( |
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. |
Proposal:
To have
md-card
be a Directive instead of a Component so any element/component can be given Card behaviorWhat is the expected behavior?
To be able to have
<my-component mdCard>
.What is the current behavior?
Currently only a
<md-card>
component can be visualized as a Card.What is the use-case or motivation for changing an existing behavior?
Be able to apply whatever logic to
<my-component>
and still keep visualization like a Card withmdCard
directive.Which versions of Angular, Material, OS, TypeScript, browsers are affected?
All
The text was updated successfully, but these errors were encountered: