Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: bower_components/paper-radio-button/paper-radio-button.html

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: bower_components/paper-radio-button/paper-radio-button.html
diff --git a/bower_components/paper-radio-button/paper-radio-button.html b/bower_components/paper-radio-button/paper-radio-button.html
deleted file mode 100644
index b3704ce3e37860b5669a9a0193264475e1f24c1e..0000000000000000000000000000000000000000
--- a/bower_components/paper-radio-button/paper-radio-button.html
+++ /dev/null
@@ -1,160 +0,0 @@
-<!--
-Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
-This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
-The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
-The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
-Code distributed by Google as part of the polymer project is also
-subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
--->
-
-<!--
-`paper-radio-button` is a button that can be either checked or unchecked.
-User can tap the radio button to check it. But it cannot be unchecked by
-tapping once checked.
-
-Use `paper-radio-group` to group a set of radio buttons. When radio buttons
-are inside a radio group, only one radio button in the group can be checked.
-
-Example:
-
- <paper-radio-button></paper-radio-button>
-
-Styling radio button:
-
-To change the ink color for checked state:
-
- paper-radio-button::shadow #ink[checked] {
- color: #4285f4;
- }
-
-To change the radio checked color:
-
- paper-radio-button::shadow #onRadio {
- background-color: #4285f4;
- }
-
-To change the ink color for unchecked state:
-
- paper-radio-button::shadow #ink {
- color: #b5b5b5;
- }
-
-To change the radio unchecked color:
-
- paper-radio-button::shadow #offRadio {
- border-color: #b5b5b5;
- }
-
-@group Paper Elements
-@element paper-radio-button
-@homepage github.io
--->
-
-<link rel="import" href="../paper-ripple/paper-ripple.html">
-<link rel="import" href="../core-a11y-keys/core-a11y-keys.html">
-
-<polymer-element name="paper-radio-button" role="radio" tabindex="0" aria-checked="false">
-<template>
-
- <link rel="stylesheet" href="paper-radio-button.css">
-
- <core-a11y-keys target="{{}}" keys="space" on-keys-pressed="{{tap}}"></core-a11y-keys>
-
- <div id="radioContainer" class="{{ {labeled: label} | tokenList }}">
-
- <div id="offRadio"></div>
- <div id="onRadio"></div>
-
- <paper-ripple id="ink" class="circle recenteringTouch" checked?="{{!checked}}"></paper-ripple>
-
- </div>
-
- <div id="radioLabel" aria-hidden="true" hidden?="{{!label}}">{{label}}<content></content></div>
-
-</template>
-<script>
-
- Polymer('paper-radio-button', {
-
- /**
- * Fired when the checked state changes due to user interaction.
- *
- * @event change
- */
-
- /**
- * Fired when the checked state changes.
- *
- * @event core-change
- */
-
- publish: {
- /**
- * Gets or sets the state, `true` is checked and `false` is unchecked.
- *
- * @attribute checked
- * @type boolean
- * @default false
- */
- checked: {value: false, reflect: true},
-
- /**
- * The label for the radio button.
- *
- * @attribute label
- * @type string
- * @default ''
- */
- label: '',
-
- /**
- * Normally the user cannot uncheck the radio button by tapping once
- * checked. Setting this property to `true` makes the radio button
- * toggleable from checked to unchecked.
- *
- * @attribute toggles
- * @type boolean
- * @default false
- */
- toggles: false,
-
- /**
- * If true, the user cannot interact with this element.
- *
- * @attribute disabled
- * @type boolean
- * @default false
- */
- disabled: {value: false, reflect: true}
- },
-
- eventDelegates: {
- tap: 'tap'
- },
-
- tap: function() {
- var old = this.checked;
- this.toggle();
- if (this.checked !== old) {
- this.fire('change');
- }
- },
-
- toggle: function() {
- this.checked = !this.toggles || !this.checked;
- },
-
- checkedChanged: function() {
- this.$.onRadio.classList.toggle('fill', this.checked);
- this.setAttribute('aria-checked', this.checked ? 'true': 'false');
- this.fire('core-change');
- },
-
- labelChanged: function() {
- this.setAttribute('aria-label', this.label);
- }
-
- });
-
-</script>
-</polymer-element>
« no previous file with comments | « bower_components/paper-radio-button/paper-radio-button.css ('k') | bower_components/paper-radio-group/.bower.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698