OLD | NEW |
1 <!-- | 1 <!-- |
2 @license | 2 @license |
3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. |
4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt | 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt | 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
7 Code distributed by Google as part of the polymer project is also | 7 Code distributed by Google as part of the polymer project is also |
8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt | 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
9 --><html><head><link rel="import" href="../polymer/polymer.html"> | 9 --><html><head><link rel="import" href="../polymer/polymer.html"> |
10 <link rel="import" href="../paper-styles/paper-styles.html"> | 10 <link rel="import" href="../paper-styles/paper-styles.html"> |
(...skipping 15 matching lines...) Expand all Loading... |
26 Custom property | Description | Default | 26 Custom property | Description | Default |
27 ----------------|-------------|---------- | 27 ----------------|-------------|---------- |
28 `--paper-input-container-invalid-color` | The foreground color of the error | `-
-google-red-500` | 28 `--paper-input-container-invalid-color` | The foreground color of the error | `-
-google-red-500` |
29 `--paper-input-error` | Mixin applied to the error | `{
}` | 29 `--paper-input-error` | Mixin applied to the error | `{
}` |
30 --> | 30 --> |
31 </head><body><dom-module id="paper-input-error"> | 31 </head><body><dom-module id="paper-input-error"> |
32 | 32 |
33 <style> | 33 <style> |
34 | 34 |
35 :host { | 35 :host { |
36 /* need to use display: none for role="alert" */ | 36 display: inline-block; |
37 display: none; | 37 visibility: hidden; |
38 float: left; | 38 float: left; |
39 | 39 |
40 color: var(--paper-input-container-invalid-color, --google-red-500); | 40 color: var(--paper-input-container-invalid-color, --google-red-500); |
41 | 41 |
42 @apply(--paper-font-caption); | 42 @apply(--paper-font-caption); |
43 @apply(--paper-input-error); | 43 @apply(--paper-input-error); |
44 } | 44 } |
45 | 45 |
46 :host([invalid]) { | 46 :host([invalid]) { |
47 display: inline-block; | 47 visibility: visible; |
48 }; | 48 }; |
49 | 49 |
50 </style> | 50 </style> |
51 | 51 |
52 <template> | 52 <template> |
53 | 53 |
54 <content></content> | 54 <content></content> |
55 | 55 |
56 </template> | 56 </template> |
57 | 57 |
58 </dom-module> | 58 </dom-module> |
59 | 59 |
60 <script src="paper-input-error-extracted.js"></script></body></html> | 60 <script src="paper-input-error-extracted.js"></script></body></html> |
OLD | NEW |