Index: third_party/polymer/v1_0/components-chromium/paper-toggle-button/README.md |
diff --git a/third_party/polymer/v1_0/components-chromium/paper-toggle-button/README.md b/third_party/polymer/v1_0/components-chromium/paper-toggle-button/README.md |
index 0924fe2aa39c681a3807aa8377e6b429ba2773f5..43e6f9c7b5ff2c07e44c06d3fc2e9e9361f4c02b 100644 |
--- a/third_party/polymer/v1_0/components-chromium/paper-toggle-button/README.md |
+++ b/third_party/polymer/v1_0/components-chromium/paper-toggle-button/README.md |
@@ -1,26 +1,48 @@ |
-paper-toggle-button |
-=================== |
+ |
+<!--- |
+ |
+This README is automatically generated from the comments in these files: |
+paper-toggle-button.html |
+ |
+Edit those files, and our readme bot will duplicate them over here! |
+Edit this file, and the bot will squash your changes :) |
+ |
+--> |
+ |
+[](https://travis-ci.org/PolymerElements/paper-toggle-button) |
+ |
+_[Demo and API Docs](https://elements.polymer-project.org/elements/paper-toggle-button)_ |
+ |
+ |
+##<paper-toggle-button> |
+ |
+ |
+Material design: [Switch](https://www.google.com/design/spec/components/selection-controls.html#selection-controls-switch) |
`paper-toggle-button` provides a ON/OFF switch that user can toggle the state |
-by tapping or by dragging the swtich. |
+by tapping or by dragging the switch. |
Example: |
-```html |
-<paper-toggle-button></paper-toggle-button> |
-``` |
- |
-Styling toggle-button: |
- |
-```html |
-<style is="custom-style"> |
- * { |
- --paper-toggle-button-unchecked-bar-color: #FF4081; |
- --paper-toggle-button-unchecked-button-color: #9c27b0; |
- --paper-toggle-button-unchecked-ink-color: #009688; |
- --paper-toggle-button-checked-bar-color: #5677fc; |
- --paper-toggle-button-checked-button-color: #ff4081; |
- --paper-toggle-button-checked-ink-color: #ff4081; |
- } |
-</style> |
-``` |
+ <paper-toggle-button></paper-toggle-button> |
+ |
+### Styling |
+ |
+The following custom properties and mixins are available for styling: |
+ |
+Custom property | Description | Default |
+----------------|-------------|---------- |
+`--paper-toggle-button-unchecked-bar-color` | Slider color when the input is not checked | `#000000` |
+`--paper-toggle-button-unchecked-button-color` | Button color when the input is not checked | `--paper-grey-50` |
+`--paper-toggle-button-unchecked-ink-color` | Selected/focus ripple color when the input is not checked | `--dark-primary-color` |
+`--paper-toggle-button-checked-bar-color` | Slider button color when the input is checked | `--default-primary-color` |
+`--paper-toggle-button-checked-button-color` | Button color when the input is checked | `--default-primary-color` |
+`--paper-toggle-button-checked-ink-color` | Selected/focus ripple color when the input is checked | `--default-primary-color` |
+`--paper-toggle-button-unchecked-bar` | Mixin applied to the slider when the input is not checked | `{}` |
+`--paper-toggle-button-unchecked-button` | Mixin applied to the slider button when the input is not checked | `{}` |
+`--paper-toggle-button-checked-bar` | Mixin applied to the slider when the input is checked | `{}` |
+`--paper-toggle-button-checked-button` | Mixin applied to the slider button when the input is checked | `{}` |
+`--paper-toggle-button-label-color` | Label color | `--primary-text-color` |
+`--paper-toggle-button-label-spacing` | Spacing between the label and the button | `8px` |
+ |
+ |