Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

mdCard: non-matching CSS selector #6267

Closed
Frank3K opened this issue Dec 12, 2015 · 1 comment
Closed

mdCard: non-matching CSS selector #6267

Frank3K opened this issue Dec 12, 2015 · 1 comment

Comments

@Frank3K
Copy link
Contributor

Frank3K commented Dec 12, 2015

The compiled material CSS includes an non-matching selector:

  md-card md-card img,
  md-card > :not(md-card-content) img {
    box-sizing: border-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex: 0 0 auto;
        -ms-flex: 0 0 auto;
            flex: 0 0 auto;
    width: 100%;
    height: auto; }

The selector md-card md-card img should be md-card img. This way the appropriate styles are not applied to images inside cards. As a result of this, issues like #761 are not fixed anymore.

The bug was introduced in 61bb6c4:

  md-card img,
  > :not(md-card-content) img {
    box-sizing: border-box;
    display: flex;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
  }

The md-card is nested here and should therefore not be here.

@Frank3K
Copy link
Contributor Author

Frank3K commented Dec 15, 2015

Fixed in 8ab8a55.

@Frank3K Frank3K closed this as completed Dec 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant