OLD | NEW |
1 # paper-checkbox | 1 # paper-checkbox |
2 | 2 |
3 `paper-checkbox` is a button that can be either checked or unchecked. User | 3 `paper-checkbox` is a button that can be either checked or unchecked. User |
4 can tap the checkbox to check or uncheck it. Usually you use checkboxes | 4 can tap the checkbox to check or uncheck it. Usually you use checkboxes |
5 to allow user to select multiple options from a set. If you have a single | 5 to allow user to select multiple options from a set. If you have a single |
6 ON/OFF option, avoid using a single checkbox and use `paper-toggle-button` | 6 ON/OFF option, avoid using a single checkbox and use `paper-toggle-button` |
7 instead. | 7 instead. |
8 | 8 |
9 Example: | 9 Example: |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 /* Unhecked state colors. */ | 22 /* Unhecked state colors. */ |
23 --paper-checkbox-unchecked-color: #5a5a5a; | 23 --paper-checkbox-unchecked-color: #5a5a5a; |
24 --paper-checkbox-unchecked-ink-color: #5a5a5a; | 24 --paper-checkbox-unchecked-ink-color: #5a5a5a; |
25 | 25 |
26 /* Checked state colors. */ | 26 /* Checked state colors. */ |
27 --paper-checkbox-checked-color: #009688; | 27 --paper-checkbox-checked-color: #009688; |
28 --paper-checkbox-checked-ink-color: #009688; | 28 --paper-checkbox-checked-ink-color: #009688; |
29 } | 29 } |
30 </style> | 30 </style> |
31 ``` | 31 ``` |
OLD | NEW |