Skip to content

Commit 084171d

Browse files
committedOct 11, 2017
feat(MdRadio): add support for md-primary hue
1 parent ca0c2a4 commit 084171d

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed
 

‎src/components/MdRadio/MdRadio.vue

+1-3
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@
3030
},
3131
id: {
3232
type: String,
33-
default () {
34-
return 'md-radio-' + MdUuid()
35-
}
33+
default: () => 'md-radio-' + MdUuid()
3634
},
3735
name: [String, Number],
3836
required: Boolean,

‎src/components/MdRadio/theme.scss

+14
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,20 @@
1414
}
1515
}
1616

17+
&.md-checked.md-primary {
18+
.md-radio-container {
19+
@include md-theme-property(border-color, primary);
20+
21+
&:after {
22+
@include md-theme-property(background-color, primary);
23+
}
24+
}
25+
26+
.md-ripple {
27+
@include md-theme-property(color, primary);
28+
}
29+
}
30+
1731
@if md-get-theme-mode() == light {
1832
.md-radio-container {
1933
border-color: rgba(#000, .54);

0 commit comments

Comments
 (0)