Skip to content

Commit c1debde

Browse files
Prevent hero arrow overlap by setting safe area
Fixes #431
1 parent 41e8389 commit c1debde

File tree

5 files changed

+7
-0
lines changed

5 files changed

+7
-0
lines changed

packages/components/hero/_hero.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,15 @@
9292
/// 13. Remove the arrow in Windows high contrast mode.
9393
/// 14. Reduce spacing and change positioning for Windows high contrast mode.
9494
/// 15. Prevent text breaking out of box on smaller sizes
95+
/// 16. Prevent overlap using safe area: box offset + arrow height + spacing
9596

9697
.nhsuk-hero--image-description {
98+
margin-bottom: calc(70px + 20px + nhsuk-spacing(3)); // [16]
99+
100+
@include mq($from: tablet) {
101+
margin-bottom: calc(48px + 20px + nhsuk-spacing(4)); // [16]
102+
}
103+
97104
.nhsuk-hero-content {
98105
background-color: $color_nhsuk-blue;
99106
color: $color_nhsuk-white;
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)