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

FAB icon offset with ui-sref instead of ng-click #7087

Closed

Description

@kuhnroyal

Using md-fab-trigger with ui-sref instead of ng-click breaks the icon alignment. Works in 1.0.5 but not on master but I can't quite pin it down to a commit.

ui-sref becomes an anchor while ng-click becomes a button.

md-fab-trigger
    md-button.md-fab.md-primary(aria-label="foo" ui-sref="foo.bar")
        md-tooltip(md-direction="left") Foo
        md-icon(md-svg-icon="editor:mode_edit")

Activity

  1. topherfangio commented on Feb 10, 2016

    @topherfangio
    Contributor

    This doesn't appear to be limited to the speed dial, it looks like it is affecting all FABs: http://codepen.io/topherfangio/pen/eJbWPd?editors=1000

    Notice how the Cake FAB in the demo above is offset because I added the ui-sref attribute. Still trying to track it down.

  2. added
    in progressMainly for in progress PRs, but may be used for issues that require multiple PRs
    P1: urgentUrgent issues that should be addressed in the next minor or patch release.
    on Feb 10, 2016
  3. added this to the 1.0.6 milestone on Feb 10, 2016
  4. self-assigned this
    on Feb 10, 2016
  5. changed the title [-]md-fab-speed-dial icon offset with ui-sref instead of ng-click[/-] [+]FAB icon offset with ui-sref instead of ng-click[/+] on Feb 10, 2016
  6. topherfangio commented on Feb 10, 2016

    @topherfangio
    Contributor

    Appears to be related to this commit: b70234e

    @devversion Can you explain why you removed the FAB's line-height in the above commit? I don't see anything in the commit message about it and it's causing this issue. Might need to revert that change, but wanted to make sure it wasn't fixing something else.

  7. devversion commented on Feb 10, 2016

    @devversion
    Member

    @topherfangio That wasn't me :), seems that Thomas modified the commit. See actual PR #5748

  8. kuhnroyal commented on Feb 10, 2016

    @kuhnroyal
    Author

    Nice find. I messed around with the dev tools for an hour and didn't locate it. Silly me.

  9. topherfangio commented on Feb 10, 2016

    @topherfangio
    Contributor

    @devversion Thanks for the info; I'll touch base with @ThomasBurleson to get this thoughts.

    @kuhnroyal I too messed around in the dev tools for a while and didn't find it. I finally just looked at the history of the button.scss figuring it would have been changed and found it 😄

  10. topherfangio commented on Feb 11, 2016

    @topherfangio
    Contributor

    Talked to Thomas, it appears that removing this line fixed an issue with the FABs on the tooltip demo. We discussed re-adding this line and figuring out a different way to fix the tooltip issue. I am investigating now.

  11. devversion commented on Feb 11, 2016

    @devversion
    Member

    @topherfangio Okay great! 👍 Thanks

  12. added a commit that references this issue on Feb 12, 2016
    a8693fc
  13. removed
    in progressMainly for in progress PRs, but may be used for issues that require multiple PRs
    on Apr 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

- Breaking ChangeP1: urgentUrgent issues that should be addressed in the next minor or patch release.

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions