Skip to content

Elevation is overridden by card #698

Open
@daniel-brenot

Description

@daniel-brenot

Describe the bug
It is currently not possible to apply an elevation to a material card since the class for the card is always the last class defined on the element that is rendered to the page. This means that not only do customizations to the card for elevation not work, but any other customizations to a card instance unless they use !important or inline styles.

To Reproduce

`

<script> import Card from '@smui/card'; </script> `

Expected behavior
The elevation class, as well as any other classes, should be applied after the class in the rendered order

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions