Merge remote-tracking branch 'origin/master' into develop

* origin/master:
  Add extra line between rules
  remove dotted outline around button
  pass on  DOM event for checkbox and radio
This commit is contained in:
Marcos Moura 2016-11-14 19:00:54 -02:00
commit a37630184d
3 changed files with 11 additions and 7 deletions

View file

@ -43,6 +43,10 @@ $button-icon-size: 40px;
&:focus {
outline: none;
}
&::-moz-focus-inner {
border:0;
}
&:hover {
&:not([disabled]) {

View file

@ -39,11 +39,11 @@
}
},
methods: {
toggleCheck() {
toggleCheck($event) {
if (!this.disabled) {
this.checked = !this.checked;
this.$emit('change', this.checked);
this.$emit('input', this.checked);
this.$emit('change', this.checked, $event);
this.$emit('input', this.checked, $event);
}
}
}

View file

@ -1,6 +1,6 @@
<template>
<div class="md-radio" :class="classes">
<div class="md-radio-container" @click="toggleCheck" v-md-ink-ripple="disabled">
<div class="md-radio-container" @click="toggleCheck($event)" v-md-ink-ripple="disabled">
<input type="radio" :name="name" :id="id" :disabled="disabled" :value="value">
</div>
@ -33,10 +33,10 @@
}
},
methods: {
toggleCheck() {
toggleCheck($event) {
if (!this.disabled) {
this.$emit('change', this.mdValue);
this.$emit('input', this.mdValue);
this.$emit('change', this.mdValue, $event);
this.$emit('input', this.mdValue, $event);
}
}
}