material icon indicating copy to clipboard operation
material copied to clipboard

Cannot nest tabs and align nested to bottom

Open newmanw opened this issue 11 years ago • 3 comments

Nesting does not seem to work at all in this case.

<md-content class="md-padding">

  <md-tabs>
      <md-tab>
        <md-tab-label>Section 1</md-tab-label>
        <md-tab-body>
          <md-content>
            <md-tabs md-align-tabs="bottom">
              <md-tab>
                <md-tab-label>Section 1.1</md-tab-label>
                <md-tab-body>
                  <md-content class="md-padding">Got some content 1.1</md-content>
                </md-tab-body>
              </md-tab>
            </md-tabs>
          </md-content>
        </md-tab-body>
      </md-tab>

      <md-tab>
        <md-tab-label>Section 2</md-tab-label>
        <md-tab-body>
          <md-content>
            <md-tabs md-align-tabs="bottom">
              <md-tab>
                <md-tab-label>Section 2.1</md-tab-label>
                <md-tab-body>
                  <md-content class="md-padding">Got some content 2.1</md-content>
                </md-tab-body>
              </md-tab>
            </md-tabs>
          </md-content>
        </md-tab-body>
      </md-tab>
  </md-tabs>

</md-content>

newmanw avatar Jul 22 '15 17:07 newmanw

+1 with regard to nested tabs being broken.

Check out this demo (based on the example above, without using md-align-tabs attribute): http://codepen.io/anon/pen/XbyaMK

The nesting displays and functions correctly under 0.10.1-rc2.
But if the JS/CSS versions are changed to 0.10.1-rc3 or 0.10.1-rc4, it breaks.

(the md-align-tabs='bottom' seems to require additional css to display properly, but that does not appear to be the core issue)

jjf1 avatar Jul 29 '15 03:07 jjf1

This refactoring commit breaks nested tabs... https://github.com/angular/material/commit/c7131f3a84e9af141dff2b0e4ac9e352307d342f

Would be greatly appreciated if it can reverted (or corrected) prior to 11.0

jjf1 avatar Aug 01 '15 19:08 jjf1

Not supported.

ThomasBurleson avatar Sep 04 '15 22:09 ThomasBurleson