Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(tabs): remove bad opacity on focus state
Browse files Browse the repository at this point in the history
  • Loading branch information
rschmukler committed Jan 27, 2015
1 parent 41c2d65 commit 72ced4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/tabs/js/inkBarDirective.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function MdTabInkDirective($$rAF) {
element
.removeClass(classNames.join(' '))
.addClass(classNames[classIndex])
.css({ left: (data.left + 1) + 'px', right: right + 'px' });
.css({ left: data.left + 'px', right: right + 'px' });

lastIndex = index;
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/services/theming/theming.js
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ function colorToRgbaArray(clr) {
function rgba(rgbArray, opacity) {
if (rgbArray.length == 4) {
rgbArray = angular.copy(rgbArray);
opacity = rgbArray.pop();
opacity ? rgbArray.pop() : opacity = rgbArray.pop();
}
return opacity && (typeof opacity == 'number' || (typeof opacity == 'string' && opacity.length)) ?
'rgba(' + rgbArray.join(',') + ',' + opacity + ')' :
Expand Down

0 comments on commit 72ced4b

Please sign in to comment.