Skip to content

Commit

Permalink
fix: do not apply ripple on disabled routable (#2899)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekkarczmarczyk authored and johnleider committed Jan 1, 2018
1 parent c9e493c commit ec9fcae
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
Expand Up @@ -105,7 +105,7 @@ exports[`VDataIterator.js should match a snapshot - footer slot 1`] = `
<button disabled="disabled"
type="button"
class="btn btn--disabled btn--flat btn--icon"
data-ripple="true"
data-ripple="false"
aria-label="Previous page"
>
<div class="btn__content">
Expand All @@ -119,7 +119,7 @@ exports[`VDataIterator.js should match a snapshot - footer slot 1`] = `
<button disabled="disabled"
type="button"
class="btn btn--disabled btn--flat btn--icon"
data-ripple="true"
data-ripple="false"
aria-label="Next page"
>
<div class="btn__content">
Expand Down Expand Up @@ -253,7 +253,7 @@ exports[`VDataIterator.js should match a snapshot - no data 1`] = `
<button disabled="disabled"
type="button"
class="btn btn--disabled btn--flat btn--icon"
data-ripple="true"
data-ripple="false"
aria-label="Previous page"
>
<div class="btn__content">
Expand All @@ -267,7 +267,7 @@ exports[`VDataIterator.js should match a snapshot - no data 1`] = `
<button disabled="disabled"
type="button"
class="btn btn--disabled btn--flat btn--icon"
data-ripple="true"
data-ripple="false"
aria-label="Next page"
>
<div class="btn__content">
Expand Down Expand Up @@ -392,7 +392,7 @@ exports[`VDataIterator.js should match a snapshot - no matching records 1`] = `
<button disabled="disabled"
type="button"
class="btn btn--disabled btn--flat btn--icon"
data-ripple="true"
data-ripple="false"
aria-label="Previous page"
>
<div class="btn__content">
Expand All @@ -406,7 +406,7 @@ exports[`VDataIterator.js should match a snapshot - no matching records 1`] = `
<button disabled="disabled"
type="button"
class="btn btn--disabled btn--flat btn--icon"
data-ripple="true"
data-ripple="false"
aria-label="Next page"
>
<div class="btn__content">
Expand Down Expand Up @@ -535,7 +535,7 @@ exports[`VDataIterator.js should match a snapshot - with data 1`] = `
<button disabled="disabled"
type="button"
class="btn btn--disabled btn--flat btn--icon"
data-ripple="true"
data-ripple="false"
aria-label="Previous page"
>
<div class="btn__content">
Expand All @@ -549,7 +549,7 @@ exports[`VDataIterator.js should match a snapshot - with data 1`] = `
<button disabled="disabled"
type="button"
class="btn btn--disabled btn--flat btn--icon"
data-ripple="true"
data-ripple="false"
aria-label="Next page"
>
<div class="btn__content">
Expand Down
14 changes: 7 additions & 7 deletions src/components/VDataTable/__snapshots__/VDataTable.spec.js.snap
Expand Up @@ -161,7 +161,7 @@ exports[`VDataTable.vue should match a snapshot - no data 1`] = `
<button disabled="disabled"
type="button"
class="btn btn--disabled btn--flat btn--icon"
data-ripple="true"
data-ripple="false"
aria-label="Previous page"
>
<div class="btn__content">
Expand All @@ -175,7 +175,7 @@ exports[`VDataTable.vue should match a snapshot - no data 1`] = `
<button disabled="disabled"
type="button"
class="btn btn--disabled btn--flat btn--icon"
data-ripple="true"
data-ripple="false"
aria-label="Next page"
>
<div class="btn__content">
Expand Down Expand Up @@ -354,7 +354,7 @@ exports[`VDataTable.vue should match a snapshot - no matching results 1`] = `
<button disabled="disabled"
type="button"
class="btn btn--disabled btn--flat btn--icon"
data-ripple="true"
data-ripple="false"
aria-label="Previous page"
>
<div class="btn__content">
Expand All @@ -368,7 +368,7 @@ exports[`VDataTable.vue should match a snapshot - no matching results 1`] = `
<button disabled="disabled"
type="button"
class="btn btn--disabled btn--flat btn--icon"
data-ripple="true"
data-ripple="false"
aria-label="Next page"
>
<div class="btn__content">
Expand Down Expand Up @@ -549,7 +549,7 @@ exports[`VDataTable.vue should match a snapshot - with data 1`] = `
<button disabled="disabled"
type="button"
class="btn btn--disabled btn--flat btn--icon"
data-ripple="true"
data-ripple="false"
aria-label="Previous page"
>
<div class="btn__content">
Expand All @@ -563,7 +563,7 @@ exports[`VDataTable.vue should match a snapshot - with data 1`] = `
<button disabled="disabled"
type="button"
class="btn btn--disabled btn--flat btn--icon"
data-ripple="true"
data-ripple="false"
aria-label="Next page"
>
<div class="btn__content">
Expand Down Expand Up @@ -647,7 +647,7 @@ exports[`VDataTable.vue should match a snapshot with single rows-per-page-items
<button disabled="disabled"
type="button"
class="btn btn--disabled btn--flat btn--icon"
data-ripple="true"
data-ripple="false"
aria-label="Previous page"
>
<div class="btn__content">
Expand Down
2 changes: 1 addition & 1 deletion src/mixins/routable.js
Expand Up @@ -34,7 +34,7 @@ export default {
props: {},
directives: [{
name: 'ripple',
value: this.ripple || false
value: (this.ripple && !this.disabled) || false
}],
on: {
...(this.$listeners || {}),
Expand Down

0 comments on commit ec9fcae

Please sign in to comment.