Skip to content

Commit b6b0018

Browse files
committed
origin/issue-310/band-layout adjust css to ensure band takes up all available space
1 parent dddd99d commit b6b0018

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

elements/pfe-band/demo/index.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,29 @@ <h3 slot="header">Aside: left body top</h3>
217217
</footer>
218218
</pfe-band>
219219

220+
<pfe-band pfe-aside-desktop="left" pfe-aside-mobile="top">
221+
<header slot="pfe-band--header">
222+
<h2>Short content band</h2>
223+
<p class="custom-band-summary">Header region, consetetur sadluptua.</p>
224+
</header>
225+
<p>Short content sadipscing elitra.</p>
226+
<pfe-cta priority="primary">
227+
<a href="#">Learn more</a>
228+
</pfe-cta>
229+
<pfe-card color="lightest" slot="pfe-band--aside">
230+
<h3 slot="header">Aside: left body top</h3>
231+
<p>Ut wisi enim ad minim veniam.</p>
232+
<pfe-cta slot="footer" priority="tertiary">
233+
<a href="#">Learn more</a>
234+
</pfe-cta>
235+
</pfe-card>
236+
<footer slot="pfe-band--footer" class="custom-footnote">
237+
<ol>
238+
<li>Footnote ipsum accusam et justo duo dolores et ea rebum.</li>
239+
</ol>
240+
</footer>
241+
</pfe-band>
242+
220243
<pfe-band pfe-color="complement" pfe-aside-desktop="left" pfe-aside-mobile="top" pfe-aside-height="body">
221244
<header slot="pfe-band--header">
222245
<h2>Complement band, layout classes</h2>

elements/pfe-band/src/pfe-band.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ $LOCAL: band;
286286

287287
position: relative;
288288
margin: 0 auto;
289+
width: 100%;
289290
max-width: #{pfe-local(Width)};
290291

291292
// Grid support styles

0 commit comments

Comments
 (0)