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

Commit

Permalink
fix(grunt): change css wrapping to prepend styles to the top of the h…
Browse files Browse the repository at this point in the history
…ead tag

angular.css is used by the utils.js CSS wrap operation, but ng-hide or
any other CSS styles present in angular.css cannot be overridden unless
the styles appear before the stylesheet is in place. This fix allows
for this to work
  • Loading branch information
matsko authored and IgorMinar committed Jul 26, 2013
1 parent 6031f1d commit fbad068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/grunt/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ module.exports = {
.replace(/\\/g, '\\\\')
.replace(/'/g, "\\'")
.replace(/\r?\n/g, '\\n');
return "angular.element(document).find('head').append('<style type=\"text/css\">" + css + "</style>');";
return "angular.element(document).find('head').prepend('<style type=\"text/css\">" + css + "</style>');";
}
},

Expand Down

0 comments on commit fbad068

Please sign in to comment.