Ui-sref on list item breaks design
When using ui-sref instead of ng-click od list item, design is broken.
workaround: use ng-click with $state.go
By doing that i'm loosing benefits like (open in new tab, open in new window...etc)
I've also seen this issue on md-buttons when using an icon. The icon reliably appears above center from what I have seen

Still not fixed in rc4
I believe I am experiencing the same issue. I will provide additional detail.
In commit f8a8b3c md-list-item was fixed so that ui-sref attributes were recognised for compatibility with angular-ui-router. This was done to match the behaviour when a ng-click attribute is added to a md-list-item: you get a cursor on hover, and a ripple on click.
Currently, when I add an ui-sref attribute to a md-list-item, I can see that a nested anchor is created with the class md-button. The issue is that the anchor has horizontal margins of 8px and vertical margins of 6px. Thus, the ripple does not extend to the edges of the md-list-item. This is inconsistent with the behaviour of adding an ng-click attribute which does not result in these margins.
I suspect that the likely culprit is the md-button class which is added to the anchor. It adds the horizontal and vertical margins.
+1 for this.
My solution was to add to my styling.
md-list-item {
> a {
margin: 0 !important;
}
}
+1! Not being allowed to use ui-sref brings a lot of headaches. If we use ng-click with $state.go then we can't use ui-sref-active to highlight the active item, then we need to manually check the current state and do all the logic that ui-sref-active does. We need to do a lot of workaround for something that should be simple.
@kaumac @gpopovic I'm trying to dive into this, but I can't reproduce the actual problem in master. Can someone of you create a little demo? (codepen etc.)
@DevVersion I think the problem is the following: http://codepen.io/gustavohenke/pen/NxVBqM
@gustavohenke Your demo isn't showing any issue, but I took the time to built it myself.
- http://codepen.io/DevVersion/pen/wMLNOJ
I think I can see what the issue is.
Update
- There is already a PR pending, which is fixing that issue. See #6496
