Service workers: Allow HTTPS pages arrived at via HTTP redirect to use SW
[chromium-blink-merge.git] / third_party / polymer / v1_0 / components-chromium / paper-spinner / README.md
blobc447c8bb0c9232b6ced32ac9f03186f51e0444a2
1 paper-spinner
2 =============
4 Element providing material design circular spinner.
6 ##### Example
8 ```html
9 <paper-spinner active></paper-spinner>
10 ```
12 The default spinner cycles between four layers of colors; by default they are
13 blue, red, yellow and green. It can be customized so that it uses one color only
14 by setting all the layer colors to the same value.
16 ##### Example
18 ```html
19 <style is="custom-style">
20   paper-spinner .rainbow {
21     --paper-spinner-layer-1-color: yellow;
22     --paper-spinner-layer-2-color: red;
23     --paper-spinner-layer-3-color: blue;
24     --paper-spinner-layer-4-color: green;
25   }
27   paper-spinner .red {
28     --paper-spinner-layer-1-color: red;
29     --paper-spinner-layer-2-color: red;
30     --paper-spinner-layer-3-color: red;
31     --paper-spinner-layer-4-color: red;
32   }
33 </style>
34 ```
36 Alt attribute should be set to provide adequate context for accessibility. If not provided,
37 it defaults to 'loading'.
38 Empty alt can be provided to mark the element as decorative if alternative content is provided
39 in another form (e.g. a text block following the spinner).
41 ##### Example
43 ```html
44 <paper-spinner alt="Loading contacts list" active></paper-spinner>
45 ```