fix when to use default colorVariant (#535)

* fix pagination not enabling next button when total changes #482. (#517)

* refactor property names to make more sense #517 (#521)

* Added watchers on mdTotal and mdPage. Changed the binding for the disabled attribute of the next page arrow to use a computed property. Fix issue #482.

* Improve code readability for the fix done for #482.

* Fix - when to use default colorVariant 

Solves issue https://github.com/marcosmoura/vue-material/issues/533.
This commit is contained in:
vizo 2017-03-21 01:35:58 +01:00 committed by Marcos Moura
parent 93bcf58502
commit 8bc28b59b9

View file

@ -65,7 +65,7 @@ const parseStyle = (style, theme, name) => {
if (colorType === 'COLOR') {
let isDefault = palette[theme[type]];
if (!hue && !isDefault) {
if (!colorVariant && !isDefault) {
if (type === 'accent') {
colorVariant = 'A200';
} else if (type === 'background') {