angular / material

Material design for AngularJS
https://material.angularjs.org/
MIT License
16.54k stars 3.39k forks source link

card: subheader content not visible on retina screen if content overflows #10874

Closed matyasfodor closed 5 years ago

matyasfodor commented 7 years ago

Actual Behavior:

The subheader is not visible for the following code in certain circumstances

  <md-card>
    <md-subheader>Valami</md-subheader>
    <md-list>
      <md-list-item>A</md-list-item>
      <md-list-item>BB</md-list-item>
      <md-list-item>CCC</md-list-item>
    </md-list>
  </md-card>

It is not displayed on my retina screen. If I attach my secondary lower resolution screen, it is visible. When I move it back to the retina screen, it's visible with blurred edges for a second, then it disappears. There are multiple md-card containers in a md-content container. The issue is only present if the content of md-content is higher than the actual viewport.

CodePen (or steps to reproduce the issue): *

AngularJS Versions: *

Additional Information:

Splaktar commented 5 years ago

Sorry for the delay in responding to this. It looks like you found a temporary solution.

Please note that the md-card docs have details about how to use classes like md-subhead for its subheaders. Here's a CodePen example of that.

Note that you can use md-subheader with md-card, but you should only do so within md-card-content. You weren't using md-card-content at all, so I added that to the above example as well.

If you have more questions about general layout and styling, please ask on Stack Overflow, Gitter, or the AngularJS Material forums.

If you've tried using the card directives and classes mentioned in the docs and find a bug, please submit a new issue with a CodePen demo and reproduction steps.