-
Notifications
You must be signed in to change notification settings - Fork 27.5k
#chrome links with transition color issue #3164
Comments
What version of AngularJS? Can you show the code in your app? Are the On 8 July 2013 22:38, Luis Carlos Osorio Jayk [email protected]:
|
Hi Pete, The links are in a template file: [...more html before...]
<p>
<a data-ng-href="#/signup" class="btn btn-warning btn-large flat">
Join the Party!
</a>
<a data-ng-href="#/live" class="btn btn-info btn-large flat">
Try it live!
</a>
</p>
[...more html after...] So although the template file is loaded dinamically using routeProvider and loading it in an ng-view directive, links are statically generated. Sorry, but the app is not live yet, cannot take you to a link to view the issue at the moment. One thing that might or might not be helpful is that CSS are brought inline in the template file through a <link rel="stylesheet" type="text/css" href="stylesheet_for_this_template" /> Thanks for your help, if you have any idea please tell me since that is not playing nice with my buttons ;) |
If you move the stylesheet link out into the body of the app does it work now? |
Hi Pete, I have moved it to the head just for testing and no, it doesn't remove the issue. And in fact is very very strange that if I open or close the console (if it was already opened when loaded) then it fixes. Or if I modify style rules on the console of any element (no matter which one). Take into account that this is happening only on Google Chrome, not happening on FireFox neither on IE. |
Another test failure too. I've had added in the head. <link rel="stylesheet" type="text/css" data-ng-href="/my_base_path/css/{{stylesheet}}.css" data-ng-repeat="stylesheet in stylesheets" /> and then in the controller that is used on that path using the routeProvider, added the stylesheet to the scope $scope.stylesheets = ['this_template_stylesheet']; And yes, stylesheet is loaded but problem persists on Chrome. |
Looks like chrome is not triggering a repaint when the animation completes. Pete Hi Pete, I have moved it to the head just for testing and no, it doesn't remove the Take into account that this is happening only on Google Chrome, not — |
I wanted to add that the styles overriding the styles are already in the head in the app.css which carries general app styles and overrides. So the styles for this aren't being loaded dinamically anyway. It also fixes if instead of transitioning all I change styles to background only, but then I cannot transition on color when needed:
|
Hi, I'm facing the same problem. ( Chrome v35 - Angular v1.2.17 ) A part of my javascript: app.config(function($routeProvider) {
$routeProvider.when('/items', {
templateUrl: '/template.html',
controller: 'ItemsCtrl'
})
}) Case 1 - with color bug
<ng-view></ng-view>
<a ng-repeat="item in items">{{ item.name }}</a> Case 2 - no color bug
<ng-view></ng-view>
<script type="text/ng-template" id="/template.html">
<a ng-repeat="item in items">{{ item.name }}</a>
</script> As a workaround, I'll use inline templates instead of distant ones. |
@mattnish - I wonder if you have different CSS styles for |
@petebacondarwin I'm simply using bootstrap and an override class. So, there are no classes that are different for anchors with/without
|
I have this same issue, there are definitely no styles that reference an a tag with/without an href. Adding edit: using version |
same issue popped up for me on angular 1.3.15 |
Is this still a problem for anyone here with newer Angular / Chrome versions? If so, can someone provide a runnable demo? |
I'm going to close this issue because we have no reproduction of the issue. Feel free to reopen this issue if you can provide a reproduction (ideally a runnable demo in a Plunker or similar. You can use this Plunker Template). |
I fixing this crazy bug on stop to use |
I'm passing an application to Angularjs, it is using Twitter Bootstrap.
And something strange is happening on Chrome.
I override links with next rule to make transition color and background:
Now, there are some links that not taking initial color (white) that they should have, instead they're getting transparent.
This is fixed if:
1- I open or close the console (really strange)
2- After first hover over the links.
3- I modify the styles of anything else using the console
Also, this happens only in Google Chrome, not happening in FireFox, neither on IE.
And this happens only on the Angularjs version of the app.
If I remove the transitions styles they work as expected (having color white on initial state and not transparent).
http://screencast.com/t/ThnqK1kAdX
(left window is Chrome, right window is FireFox)
Any idea?
The text was updated successfully, but these errors were encountered: