Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit 0f43b4b

Browse files
committed
add disabled state
1 parent 739cf6d commit 0f43b4b

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

paper-radio-button.css

+14-1
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
8282

8383
#radioLabel[hidden] {
8484
display: none;
85-
}
85+
}
86+
87+
/* disabled state */
88+
:host([disabled]) {
89+
pointer-events: none;
90+
}
91+
92+
:host([disabled]) #offRadio {
93+
border-color: #eaeaea !important;
94+
}
95+
96+
:host([disabled]) #onRadio {
97+
background-color: #eaeaea !important;
98+
}

paper-radio-button.html

+10-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,16 @@
107107
* @type boolean
108108
* @default false
109109
*/
110-
toggles: false
110+
toggles: false,
111+
112+
/**
113+
* If true, the user cannot interact with this element.
114+
*
115+
* @attribute disabled
116+
* @type boolean
117+
* @default false
118+
*/
119+
disabled: {value: false, reflect: true}
111120
},
112121

113122
eventDelegates: {

0 commit comments

Comments
 (0)