diff --git a/src/definitions/modules/dimmer.js b/src/definitions/modules/dimmer.js index c68d90479..d972cec68 100644 --- a/src/definitions/modules/dimmer.js +++ b/src/definitions/modules/dimmer.js @@ -383,10 +383,11 @@ $.fn.dimmer = function(parameters) { var color = $dimmer.css('background-color'), colorArray = color.split(','), + isRGB = (colorArray && colorArray.length == 3), isRGBA = (colorArray && colorArray.length == 4) ; opacity = settings.opacity === 0 ? 0 : settings.opacity || opacity; - if(isRGBA) { + if(isRGB || isRGBA) { colorArray[3] = opacity + ')'; color = colorArray.join(','); }