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.
mdButton: layout-align replaces space with dash which breaks styles #10711
Open
Description
Actual Behavior:
What is the issue? *
Since 1.1.4 usinglayout-align="center center"
on anmd-button
changes the attribute intolayout-align="center-center"
which breaks(doesn't match) the normal css selector for[layout-align="center center"]
.What is the expected behavior?
md-button
should not replace the space with a dash/hyphen.
CodePen (or steps to reproduce the issue): *
CodePen Demo which shows your issue:
https://codepen.io/anon/pen/yXBaJPDetails:
Inspect to see that thelayout-align
attribute(not class) on the button replaces the space with a dash. It is not supposed to do this and it doesn't do this on other elements.
This doesn't look very important because it still semi works. But it completely breaks your alignment if you have an image inside of a button and it may break other use cases. Example: profile picture in a toolbar is an image inside of a button to go to your profile page.
Notice it is not vertically centered due to this bug.
AngularJS Versions: *
AngularJS Version:
1.5.5(or 1.5.x)AngularJS Material Version:
1.1.4(note it isn't broken in 1.1.3)
Additional Information:
Browser Type: *
ChromeBrowser Version: *
58OS: *
macOS 10.12.5Stack Traces:
Shortcut to create a new CodePen Demo.
Note: *
indicates required information. Without this information, your issue may be auto-closed.
Do not modify the titles or questions. Simply add your responses to the ends of the questions.
Add more lines if needed.