@@ -29,7 +29,6 @@ import {
2929 Layout ,
3030 Header ,
3131 Aside ,
32- Main ,
3332 Footer ,
3433 Grid ,
3534 Section ,
@@ -56,7 +55,7 @@ export const HeaderLayoutAsideMain = () => (
5655 < Header > Header</ Header >
5756 < Layout hasAside >
5857 < Aside width = "20%" > Aside</ Aside >
59- < Main > Main </ Main >
58+ < Section > Section </ Section >
6059 </ Layout >
6160 </ Layout >
6261 </ Highlighter >
@@ -68,7 +67,7 @@ export const HeaderLayoutAsideMainFooter = () => (
6867 < Header > Header</ Header >
6968 < Layout hasAside >
7069 < Aside width = "20%" > Aside</ Aside >
71- < Main > Main </ Main >
70+ < Section > Section </ Section >
7271 </ Layout >
7372 < Footer > Footer</ Footer >
7473 </ Layout >
@@ -80,7 +79,7 @@ export const AsideMainFooter = () => (
8079 < Layout >
8180 < Layout hasAside >
8281 < Aside width = "20%" > Aside</ Aside >
83- < Main > Main </ Main >
82+ < Section > Section </ Section >
8483 </ Layout >
8584 < Footer > Footer</ Footer >
8685 </ Layout >
@@ -94,7 +93,7 @@ export const AsideLayoutHeaderMainFooter = () => (
9493 < Aside width = "20%" > Aside</ Aside >
9594 < Layout >
9695 < Header > Header</ Header >
97- < Main > Main </ Main >
96+ < Section > Section </ Section >
9897 < Footer > Footer</ Footer >
9998 </ Layout >
10099 </ Layout >
@@ -111,7 +110,7 @@ export const AsideLayoutHeaderLayoutLayoutMainAsideFooter = () => (
111110 < Header > Header</ Header >
112111 < Layout >
113112 < Layout hasAside >
114- < Main > Main </ Main >
113+ < Section > Section </ Section >
115114 < Aside width = "40%" > Aside</ Aside >
116115 </ Layout >
117116 </ Layout >
@@ -127,7 +126,14 @@ const CustomGrid = styled(Grid)`
127126`
128127
129128const Highlighter = styled . div `
129+ /* Emulate Page behavior for demos */
130+ height: 100%;
131+ & > ${ Layout } {
132+ height: 100%;
133+ }
134+
130135 /* stylelint-disable color-named */
136+
131137 ${ Header } , ${ Footer } {
132138 background-color: lightskyblue;
133139 }
@@ -136,7 +142,7 @@ const Highlighter = styled.div`
136142 background-color: lightsalmon;
137143 }
138144
139- ${ Main } , ${ Section } {
145+ ${ Section } {
140146 background-color: lightseagreen;
141147 }
142148`
0 commit comments