material icon indicating copy to clipboard operation
material copied to clipboard

Misleading layout description in documentation

Open hvedir opened this issue 12 years ago • 6 comments

Please fix layout="column" to layout="vertical" and layout="row" to layout="horizontal" in the description of layout attributes at Angular Material Design it is very misleading

LAYOUT ATTRIBUTE

Use the layout attribute on an element to arrange its children horizontally in a row (layout="row"), or vertically in a column (layout="column"). The layout attribute's value describes what the "main axis" is for its children. It uses words that adhere to the flexbox specification.

<div layout="row"> <div>I'm left.</div> <div>I'm right.</div> </div>

<div layout="column"> <div>I'm above.</div> <div>I'm below.</div> </div>

hvedir avatar Nov 21 '14 20:11 hvedir

+1 for vertical/horizontal. I also found it very misleading while developing an app.

brunocassol avatar Nov 21 '14 23:11 brunocassol

I believe this was re-factored and renamed a week or so back. It's suppose to be row and column now, though I don't know why.

sondreb avatar Nov 22 '14 00:11 sondreb

Row and column makes sense to me as a developer, personally.

marcysutton avatar Nov 22 '14 00:11 marcysutton

Row and column match flexbox, which is what we are using underneath.

The layout docs are being rewritten to be much clearer.

ajoslin avatar Nov 22 '14 01:11 ajoslin

there is also column/center in the example which should be "center center" to match the displayed example.

rvowles avatar Nov 22 '14 04:11 rvowles

@ajoslin - can we close this issue now with the 0.6.0 release?

ThomasBurleson avatar Dec 02 '14 22:12 ThomasBurleson