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

Commit fbad068

Browse files
matskoIgorMinar
authored andcommitted
fix(grunt): change css wrapping to prepend styles to the top of the head 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
1 parent 6031f1d commit fbad068

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/grunt/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ module.exports = {
8585
.replace(/\\/g, '\\\\')
8686
.replace(/'/g, "\\'")
8787
.replace(/\r?\n/g, '\\n');
88-
return "angular.element(document).find('head').append('<style type=\"text/css\">" + css + "</style>');";
88+
return "angular.element(document).find('head').prepend('<style type=\"text/css\">" + css + "</style>');";
8989
}
9090
},
9191

0 commit comments

Comments
 (0)