Material: can we make the tabs have an option 'md-align-tabs=left'

Created on 29 Oct 2015  路  7Comments  路  Source: angular/material

md-align-tabs=left or md-align-tabs=right

right now it has top or bottom.

feature

Most helpful comment

md-center-tabs attiribute adds .md-center-tabs class which uses margin: 0 auto; in order to center the tabs.

After enabling md-center-tabs,

md-pagination-wrapper.md-center-tabs {
        margin: 0;
        margin-left: auto;
      }

will align the tabs to the right without distorting their order.

All 7 comments

Right now you can set the tab to position in the center with md-center-tabs

to achieve right alignment you can use a temporary override

.md-tab {
  float: right;
}

md-pagination-wrapper {
  left: initial;
  right: 0;
}

I tried to align the tabs to the left.

See the pen:

but the height of md-pagination-wrapper is always reset to zero.

Could you take a look?

Oh.. You want to order the tabs vertically? I will take a look later.

@ThomasBurleson I'm curious why this was deprecated.

@downquark This is not a part of the spec

md-center-tabs attiribute adds .md-center-tabs class which uses margin: 0 auto; in order to center the tabs.

After enabling md-center-tabs,

md-pagination-wrapper.md-center-tabs {
        margin: 0;
        margin-left: auto;
      }

will align the tabs to the right without distorting their order.

its not working,

add
justify-content: flex-end; to
md-tabs-wrapper.md-stretch-tabs md-pagination-wrapper

will make it work

Was this page helpful?
0 / 5 - 0 ratings

Related issues

epelc picture epelc  路  3Comments

buzybee83 picture buzybee83  路  3Comments

pablorsk picture pablorsk  路  3Comments

chriseyhorn picture chriseyhorn  路  3Comments

ghost picture ghost  路  3Comments