Skip to content

Commit 5550253

Browse files
Merge pull request #1466 from ASU/UDS-1765
fix(unity-bootstrap-theme): changed height to min-height on hero-overlay classes
2 parents 4dcc0a5 + 64002b9 commit 5550253

File tree

2 files changed

+16
-15
lines changed

2 files changed

+16
-15
lines changed

packages/unity-bootstrap-theme/src/scss/extends/_heroes.scss

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ div[class^="uds-hero"] {
7979
grid-row: 2;
8080
grid-template-columns: 1fr;
8181
grid-template-rows: 1fr 1fr;
82+
margin-top: $uds-size-spacing-10;
8283

8384
p {
8485
margin: 0;
@@ -211,7 +212,7 @@ div[class^="uds-hero"] {
211212
}
212213

213214
div.uds-hero-sm {
214-
height: $uds-size-spacing-32;
215+
min-height: $uds-size-spacing-32;
215216
grid-template-rows: 1fr auto auto 3rem;
216217

217218
h1,
@@ -244,7 +245,7 @@ div.uds-hero-sm {
244245
}
245246

246247
.hero-overlay {
247-
height: $uds-size-spacing-32;
248+
min-height: $uds-size-spacing-32;
248249
}
249250
}
250251

@@ -254,7 +255,7 @@ div.uds-hero-sm {
254255
}
255256

256257
div.uds-hero-md {
257-
height: 21rem;
258+
min-height: 21rem;
258259
// by design, the hero-md has no content on mobile, change grid template rows and hide .content
259260
grid-template-rows: 1fr auto auto 3rem;
260261

@@ -270,7 +271,7 @@ div.uds-hero-md {
270271
}
271272

272273
.hero-overlay {
273-
height: 21rem;
274+
min-height: 21rem;
274275
}
275276
}
276277

@@ -281,7 +282,7 @@ div.uds-hero-md {
281282
}
282283

283284
div.uds-hero-lg {
284-
height: $uds-size-spacing-64;
285+
min-height: $uds-size-spacing-64;
285286

286287
.content {
287288
display: none;
@@ -307,7 +308,7 @@ div.uds-hero-lg {
307308
}
308309

309310
.hero-overlay {
310-
height: $uds-size-spacing-64;
311+
min-height: $uds-size-spacing-64;
311312
}
312313
}
313314

@@ -378,7 +379,7 @@ div.uds-hero-lg {
378379
grid-template-rows: 1fr auto auto $uds-size-spacing-7;
379380
&.has-btn-row {
380381
.btn-row {
381-
top: 14.5rem;
382+
top: 92%;
382383
}
383384
}
384385

@@ -390,7 +391,7 @@ div.uds-hero-lg {
390391
}
391392

392393
div.uds-hero-md {
393-
height: $uds-size-spacing-64;
394+
min-height: $uds-size-spacing-64;
394395
// TODO; remove this, it's a fallback for buttons without has-btn-row
395396
grid-template-rows: 1fr repeat(4, auto) $uds-size-spacing-6;
396397
h1 {
@@ -419,13 +420,13 @@ div.uds-hero-lg {
419420
}
420421

421422
.hero-overlay {
422-
height: $uds-size-spacing-64;
423+
min-height: $uds-size-spacing-64;
423424
}
424425
}
425426
}
426427

427428
div.uds-hero-lg {
428-
height: 42.75rem;
429+
min-height: 42.75rem;
429430
// TODO; remove this, it's a fallback for buttons without has-btn-row
430431
grid-template-rows: 1fr repeat(4, auto) $uds-size-spacing-6;
431432

@@ -448,7 +449,7 @@ div.uds-hero-lg {
448449
}
449450

450451
.hero-overlay {
451-
height: 42.75rem;
452+
min-height: 42.75rem;
452453
}
453454
}
454455

@@ -497,7 +498,7 @@ div.uds-hero-lg {
497498
}
498499

499500
div.uds-hero-lg {
500-
height: 42.75rem;
501+
min-height: 42.75rem;
501502

502503
&.uds-video-hero {
503504
position: relative;

packages/unity-bootstrap-theme/src/scss/extends/_xx_Hero-Competing.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,18 @@ div[class^='uds-hero'] {
6161
}
6262

6363
&.uds-hero-sm {
64-
height: $uds-size-spacing-32;
64+
min-height: $uds-size-spacing-32;
6565
.hero-body {
6666
display: none;
6767
}
6868
}
6969

7070
&.uds-hero-md {
71-
height: $uds-size-spacing-64;
71+
min-height: $uds-size-spacing-64;
7272
}
7373

7474
&.uds-hero-lg {
75-
height: 42.75rem;
75+
min-height: 42.75rem;
7676
}
7777
}
7878

0 commit comments

Comments
 (0)