Skip to content

Commit 77d9b8b

Browse files
committed
Merge pull request Polymer#1247 from Polymer/ebidel-patch-1
Fixes Polymer#1246
2 parents 13dc136 + ab4cf49 commit 77d9b8b

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

1.0/docs/migration.md

+14-1
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ in the Developer guide, or use `setAttribute` directly.
623623
Also, note that the `class` attribute is ignored if it is specified in the `hostAttributes`
624624
object.
625625

626-
## Layout attributes replaced by custom properties {#layout-attributes}
626+
## Layout attributes replaced by layout classes and custom properties {#layout-attributes}
627627

628628
The layout attributes stylesheet that's included in Polymer 0.5 has been
629629
replaced with an optional stylesheet that uses custom properties. If your element uses
@@ -708,6 +708,19 @@ source](https://github.com/PolymerElements/iron-flex-layout/blob/master/iron-fle
708708
For more examples of the layout properties in use, see the
709709
[demo](https://elements.polymer-project.org/elements/iron-flex-layout?view=demo:demo/index.html).
710710

711+
### Using the layout classes directly
712+
713+
The layout classes can be imported and used simliar to the layout attributes. This is useful if you want to use the classes from within the main page or do not want to define a style rule just to use one of the custom properties:
714+
715+
Example of using the layout classes in the main page:
716+
717+
<head>
718+
...
719+
<link rel="import" href="/bower_components/iron-flex-layout/classes/iron-flex-layout.html">
720+
</head>
721+
<body class="fullbleed layout horizontal center-center">
722+
...
723+
</body>
711724

712725
## Use WebComponentsReady instead of polymer-ready {#polymer-ready}
713726

0 commit comments

Comments
 (0)