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

RTL support for 2.hybrid #308

Open
wants to merge 5 commits into
base: 2.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ sudo: 'false'
before_script:
- npm install -g polymer-cli
- polymer install --variants
- git checkout package-lock.json
- >-
npm run update-types && git diff --exit-code || (echo -e
'\n\033[31mERROR:\033[0m Typings are stale. Please run "npm run
Expand Down
27 changes: 25 additions & 2 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
<!-- Ensure Web Animations polyfill is loaded since neon-animation 2.0 doesn't import it -->
<link rel="import" href="../../neon-animation/web-animations.html">

<link rel="import" href="../../iron-demo-helpers/demo-snippet.html">
<link rel="import" href="../../iron-demo-helpers/demo-pages-shared-styles.html">
<link rel="import" href="../../paper-item/paper-item.html">
Expand All @@ -35,7 +35,7 @@
display: flex;
};
}

paper-tabs {
width: 400px;
}
Expand Down Expand Up @@ -76,6 +76,29 @@ <h4>This is a plain paper-dropdown-menu</h4>
</template>
</demo-snippet>

<h4>Supports RTL</h4>
<demo-snippet class="centered-demo">
<template>
<paper-dropdown-menu dir="rtl" label="Dinosaurs">
<paper-listbox slot="dropdown-content" class="dropdown-content">
<paper-item>allosaurus</paper-item>
<paper-item>brontosaurus</paper-item>
<paper-item>carcharodontosaurus</paper-item>
<paper-item>diplodocus</paper-item>
</paper-listbox>
</paper-dropdown-menu>

<paper-dropdown-menu-light dir="rtl" label="Dinosaurs lite">
<paper-listbox slot="dropdown-content" class="dropdown-content">
<paper-item>allosaurus</paper-item>
<paper-item>brontosaurus</paper-item>
<paper-item>carcharodontosaurus</paper-item>
<paper-item>diplodocus</paper-item>
</paper-listbox>
</paper-dropdown-menu-light>
</template>
</demo-snippet>

<h4>You can pre-select a value using the <i>selected</i> attribute</h4>
<demo-snippet class="centered-demo">
<template>
Expand Down
Loading