tuchk4
tuchk4

Reputation: 2350

Angular Material buttons height

html:

<body id="app">
  <md-button>
    Yo
  </md-button>
</body>

Looks: angular material button 100% height

Why button with 100% height? But at materials docs they looks like inline element.

And material directives without replace option:

enter image description here

But at materials docs all directives replaced with templates.

What is wrong?

Upvotes: 1

Views: 1937

Answers (1)

epelc
epelc

Reputation: 5784

You are probably using an old version. Angular-material is in heavy development. Also you may want to try using layout="horizontal" (note in 0.6.0-rc1 horizontal has changed to row) on your body element so that it is displayed right. Try reading the layout docs

If you have a plunkr I could probably help you out more but I hope the above solves your problems.

Upvotes: 3

Related Questions