Skip to content

Commit

Permalink
Added mixins --paper-tabs-scroll-buttons, `--paper-tabs-scroll-butt…
Browse files Browse the repository at this point in the history
…on-left` and `--paper-tabs-scroll-button-right`
  • Loading branch information
philipp90 committed Aug 8, 2017
1 parent 66e3d15 commit adf3536
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions paper-tabs.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@
`--paper-tabs` | Mixin applied to the tabs | `{}`
`--paper-tabs-content` | Mixin applied to the content container of tabs | `{}`
`--paper-tabs-container` | Mixin applied to the layout container of tabs | `{}`
`--paper-tabs-scroll-buttons` | Mixin applied to the scroll buttons | `{}`
`--paper-tabs-scroll-button-left` | Mixin applied to the left scroll button | `{}`
`--paper-tabs-scroll-button-right` | Mixin applied to the right scroll button | `{}`
@hero hero.svg
@demo demo/index.html
Expand Down Expand Up @@ -211,9 +214,21 @@
#tabsContent > ::slotted(:not(#selectionBar)) {
height: 100%;
}

paper-icon-button {
@apply --paper-tabs-scroll-buttons;
}

#scroll-button-left {
@apply --paper-tabs-scroll-button-left;
}

#scroll-button-right {
@apply --paper-tabs-scroll-button-right;
}
</style>

<paper-icon-button icon="paper-tabs:chevron-left" class$="[[_computeScrollButtonClass(_leftHidden, scrollable, hideScrollButtons)]]" on-up="_onScrollButtonUp" on-down="_onLeftScrollButtonDown" tabindex="-1"></paper-icon-button>
<paper-icon-button id="scroll-button-left" icon="paper-tabs:chevron-left" class$="[[_computeScrollButtonClass(_leftHidden, scrollable, hideScrollButtons)]]" on-up="_onScrollButtonUp" on-down="_onLeftScrollButtonDown" tabindex="-1"></paper-icon-button>

<div id="tabsContainer" on-track="_scroll" on-down="_down">
<div id="tabsContent" class$="[[_computeTabsContentClass(scrollable, fitContainer)]]">
Expand All @@ -223,7 +238,7 @@
</div>
</div>

<paper-icon-button icon="paper-tabs:chevron-right" class$="[[_computeScrollButtonClass(_rightHidden, scrollable, hideScrollButtons)]]" on-up="_onScrollButtonUp" on-down="_onRightScrollButtonDown" tabindex="-1"></paper-icon-button>
<paper-icon-button id="scroll-button-right" icon="paper-tabs:chevron-right" class$="[[_computeScrollButtonClass(_rightHidden, scrollable, hideScrollButtons)]]" on-up="_onScrollButtonUp" on-down="_onRightScrollButtonDown" tabindex="-1"></paper-icon-button>

</template>

Expand Down

0 comments on commit adf3536

Please sign in to comment.