diff --git a/src/components/tabs/js/tabItemDirective.js b/src/components/tabs/js/tabItemDirective.js index 28945d3d224..fd158ba6e2d 100644 --- a/src/components/tabs/js/tabItemDirective.js +++ b/src/components/tabs/js/tabItemDirective.js @@ -91,6 +91,8 @@ function MdTabDirective($mdInkRipple, $compile, $mdUtil, $mdConstant, $timeout) var tabItemCtrl = ctrls[0]; // Controller for THIS tabItemCtrl var tabsCtrl = ctrls[1]; // Controller for ALL tabs + $timeout(element.addClass.bind(element, 'md-tab-themed'), 0, false); + scope.$watch( function () { return attr.label; }, function () { $timeout(function () { tabsCtrl.scope.$broadcast('$mdTabsChanged'); }, 0, false); } diff --git a/src/components/tabs/tabs.scss b/src/components/tabs/tabs.scss index 90b535e5004..df4fd557cc6 100644 --- a/src/components/tabs/tabs.scss +++ b/src/components/tabs/tabs.scss @@ -153,8 +153,11 @@ md-tab { cursor: pointer; padding: 20px 24px; box-sizing: border-box; - transition: background 0.35s $swift-ease-in-out-timing-function, - color 0.35s $swift-ease-in-out-timing-function; + transition: none; + &.md-tab-themed { + transition: background 0.35s $swift-ease-in-out-timing-function, + color 0.35s $swift-ease-in-out-timing-function; + } &[disabled] { pointer-events: none;