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.

mdButton: layout-align replaces space with dash which breaks styles #10711

Open
@epelc

Description

@epelc

Actual Behavior:

  • What is the issue? * Since 1.1.4 using layout-align="center center" on an md-button changes the attribute into layout-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/yXBaJP
  • Details:
    Inspect to see that the layout-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.
    image

Also in a local project
image

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.
image

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: * Chrome
  • Browser Version: * 58
  • OS: * macOS 10.12.5
  • Stack 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4: minorMinor issues. May not be fixed without community contributions.type: bugui: CSS

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions