react-mdl icon indicating copy to clipboard operation
react-mdl copied to clipboard

mdl-layout__inner-container breaks fixedHeader

Open dantman opened this issue 7 years ago • 3 comments

MDL defines the following in the SASS for .mdl-layout__header.

    @media screen and (max-width: $layout-screen-size-threshold) {
      & {
        display: none;
      }

      .mdl-layout--fixed-header > & {
        display: flex;
      }
    }

However the DOM that react-mdl outputs is:

<div class="... mdl-layout--fixed-header"
>
  <div class="mdl-layout__inner-container">
    <header class="mdl-layout__header">
      ...
    </header>
    <div class="mdl-layout__content">
      ...
    </div>
  </div>
</div>

This means that .mdl-layout--fixed-header > & will never apply to <Header> and headers will always be hidden on small screens.

dantman avatar Aug 11 '16 15:08 dantman