Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Unified Diff: third_party/polymer/v1_0/components-chromium/paper-checkbox/paper-checkbox.html

Issue 2158913007: Roll Polymer from 1.5.0 -> 1.6.0 to pick up native CSS custom props (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/polymer/v1_0/components-chromium/paper-checkbox/paper-checkbox.html
diff --git a/third_party/polymer/v1_0/components-chromium/paper-checkbox/paper-checkbox.html b/third_party/polymer/v1_0/components-chromium/paper-checkbox/paper-checkbox.html
index 7d752ee0de0a9f69f84f7ba04a05023aa14127a2..a14c57c510d388709c49b7f8c7f2192a42197e57 100644
--- a/third_party/polymer/v1_0/components-chromium/paper-checkbox/paper-checkbox.html
+++ b/third_party/polymer/v1_0/components-chromium/paper-checkbox/paper-checkbox.html
@@ -40,6 +40,8 @@ Custom property | Description | Default
`--paper-checkbox-label-color` | Label color | `--primary-text-color`
`--paper-checkbox-label-checked-color` | Label color when the input is checked | `--paper-checkbox-label-color`
`--paper-checkbox-label-spacing` | Spacing between the label and the checkbox | `8px`
+`--paper-checkbox-label` | Mixin applied to the label | `{}`
+`--paper-checkbox-label-checked` | Mixin applied to the label when the input is checked | `{}`
`--paper-checkbox-error-color` | Checkbox color when invalid | `--error-color`
`--paper-checkbox-size` | Size of the checkbox | `18px`
`--paper-checkbox-margin` | Margin around the checkbox container | `initial`
@@ -64,6 +66,10 @@ In order to apply the `Roboto` font to this element, make sure you've imported `
-webkit-tap-highlight-color: transparent;
}
+ :host([hidden]) {
+ display: none !important;
+ }
+
:host(:focus) {
outline: none;
}
@@ -176,10 +182,12 @@ In order to apply the `Roboto` font to this element, make sure you've imported `
white-space: normal;
line-height: normal;
color: var(--paper-checkbox-label-color, --primary-text-color);
+ @apply(--paper-checkbox-label);
}
:host([checked]) #checkboxLabel {
color: var(--paper-checkbox-label-checked-color, --paper-checkbox-label-color);
+ @apply(--paper-checkbox-label-checked);
}
:host-context([dir="rtl"]) #checkboxLabel {

Powered by Google App Engine
This is Rietveld 408576698