Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #79 from PolymerElements/bicknellr/rtl-arrows
Browse files Browse the repository at this point in the history
Fixes #39: reverse flex direction when in RTL
  • Loading branch information
bicknellr committed Nov 2, 2015
2 parents 1fbd30a + 820fecd commit 1dcd5db
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 4 deletions.
29 changes: 25 additions & 4 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,28 @@ <h3>E. Scrollable Tabs</h3>

</paper-tabs>

<h3>F. Link Tabs</h3>
<h3>F. Scrollable tabs within right-to-left region</h3>

<div dir="rtl">
<paper-tabs selected="0" scrollable>

<paper-tab>NUMBER ONE ITEM</paper-tab>
<paper-tab>ITEM TWO</paper-tab>
<paper-tab>THE THIRD ITEM</paper-tab>
<paper-tab>THE ITEM FOUR</paper-tab>
<paper-tab>FIFTH</paper-tab>
<paper-tab>THE SIXTH TAB</paper-tab>
<paper-tab>NUMBER SEVEN</paper-tab>
<paper-tab>EIGHT</paper-tab>
<paper-tab>NUMBER NINE</paper-tab>
<paper-tab>THE TENTH</paper-tab>
<paper-tab>THE ITEM ELEVEN</paper-tab>
<paper-tab>TWELFTH ITEM</paper-tab>

</paper-tabs>
</div>

<h3>G. Link Tabs</h3>

<paper-tabs selected="0">

Expand All @@ -135,7 +156,7 @@ <h3>F. Link Tabs</h3>

</paper-tabs>

<h3>G. Tabs in Toolbar</h3>
<h3>H. Tabs in Toolbar</h3>

<paper-toolbar class="tall">

Expand All @@ -150,7 +171,7 @@ <h3>G. Tabs in Toolbar</h3>

</paper-toolbar>

<h3>H. Tabs aligned to bottom</h3>
<h3>I. Tabs aligned to bottom</h3>

<paper-tabs selected="0" align-bottom>

Expand All @@ -160,7 +181,7 @@ <h3>H. Tabs aligned to bottom</h3>

</paper-tabs>

<h3>I. Bound Selection</h3>
<h3>J. Bound Selection</h3>

<template is="dom-bind">
<h2>Current Tab: <span>[[selected]]</span></h2>
Expand Down
4 changes: 4 additions & 0 deletions paper-tabs.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@
@apply(--paper-tabs);
}

:host-context([dir=rtl]) {
@apply(--layout-horizontal-reverse);
}

#tabsContainer {
position: relative;
height: 100%;
Expand Down

0 comments on commit 1dcd5db

Please sign in to comment.