diff --git a/paper-checkbox.html b/paper-checkbox.html index 9184ded..bf08704 100644 --- a/paper-checkbox.html +++ b/paper-checkbox.html @@ -221,13 +221,13 @@ } /* invalid state */ - #checkbox.invalid:not(.checked) { + :host([invalid]) #checkbox:not(.checked) { border-color: var(--paper-checkbox-error-color, var(--error-color)); }
-
+
@@ -285,15 +285,8 @@ } }, - _computeCheckboxClass: function(checked, invalid) { - var className = ''; - if (checked) { - className += 'checked '; - } - if (invalid) { - className += 'invalid'; - } - return className; + _computeCheckboxClass: function(checked) { + return checked ? 'checked' : ''; }, _computeCheckmarkClass: function(checked) {