This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(button): fixes style inconsistencies between
md-buttons
using `…
…a` and `button` under the hood Closes #2440
- Loading branch information
cc07e63
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@robertmesserle This breaks consistent button styles inside a
layout="column"
, button takes full witdh while anchor does not.cc07e63
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc07e63
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes was working on this for a while: http://plnkr.co/edit/htsnsfDOjDsAY9g17p26?p=preview
The bottom example illustrates the new issue.
The real problem seems to be the
overflow: hidden
on the.md-button
class. I am not sure but I think this has no effect and can safely be removed. With that change and back todisplay: inline-block
it seems fine.display: block
works as well, not sure if that might be an option.Problem 2 is something that has bugged me for a while. Button heights are not consistent in Firefox.
button
is 38px anda
is 36px as it is supposed to. This can be fixed by removing theline-height: 36px
from.md-button
and setting it only fora.md-button
.You can test both problems by uncommenting the CSS.
cc07e63
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, thanks! Committing a fix right now.
cc07e63
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix is up - once this propagates over to bower, it should be resolved.
The fix: b1a144d
cc07e63
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks.
Should I open an issues for the Firefox problem?
cc07e63
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc07e63
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks... it works!