-
Notifications
You must be signed in to change notification settings - Fork 51
Need a way to specify tab alignment. #102
Comments
There is a hack that I use. Use this CSS to center the tabs: .paper-tabs-0 #tabsContainer.paper-tabs { #tabsContent.scrollable.paper-tabs { |
@KyleHorkley FYI, that's not going to work under native shadow. |
@KyleHorkley Glad you noticed this! Your post in the Polymer Google+ page is actually why I filed the issue. |
@ebidel Yeah, but it's a nice workaround for now. |
@bicknellr @ebidel Found a better way to accomplish this (and it should work in native shadow!). Simply add a div before and after paper-tabs with the class of flex. Credit to Matt Bogado on G+ |
Adding flex class in a wrapper div did not help. The only way I could get the tabs to center was to change position:absolute in #tabContents to position:static. Since this style can't be overwritten due to shadow, can a property such as @apply(--paper-tabs-content) please be added to the #tabsContent and#tabsContent.scrollable styles in paper-tabs.html? |
There's currently no way to center tabs.
The text was updated successfully, but these errors were encountered: