UNPKG

@haxtheweb/haxcms-nodejs

Version:

HAXcms single and multisite nodejs server, api, and administration

51 lines (44 loc) 1.95 kB
/** @license Copyright (c) 2015 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 */ import"../polymer/polymer-legacy.js";import"../paper-styles/default-theme.js";import"../paper-styles/typography.js";import{Polymer as i}from"../polymer/lib/legacy/polymer-fn.js";import{html as e}from"../polymer/lib/utils/html-tag.js";import{PaperInputAddonBehavior as r}from"./paper-input-addon-behavior.js";i({_template:e` <style> :host { display: inline-block; visibility: hidden; color: var(--paper-input-container-invalid-color, var(--error-color)); @apply --paper-font-caption; @apply --paper-input-error; position: absolute; left:0; right:0; } :host([invalid]) { visibility: visible; } #a11yWrapper { visibility: hidden; } :host([invalid]) #a11yWrapper { visibility: visible; } </style> <!-- If the paper-input-error element is directly referenced by an \`aria-describedby\` attribute, such as when used as a paper-input add-on, then applying \`visibility: hidden;\` to the paper-input-error element itself does not hide the error. For more information, see: https://www.w3.org/TR/accname-1.1/#mapping_additional_nd_description --> <div id="a11yWrapper"> <slot></slot> </div> `,is:"paper-input-error",behaviors:[r],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(i){this._setInvalid(i.invalid)}});