Skip to content

Commit 86d1ff7

Browse files
PLANET-7981: Implement Skip to content link (#69)
* PLANET-7981: Implement Skip to content link Ref: https://greenpeace-planet4.atlassian.net/browse/PLANET-7981 - Apply anchor to countries list selector - Include new styles
1 parent 8516ccf commit 86d1ff7

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@
4747
height="0" width="0" style="display:none;visibility:hidden;"></iframe></noscript>
4848
<!-- End GPI Google Tag Manager (noscript) -->
4949

50+
<ul class="skip-links">
51+
<li><a href="#country-list-wrapper">Skip to Content</a></li>
52+
</ul>
53+
5054
<header>
5155
<div class="page-header-background">
5256
<img alt="Greenpeace" src="/static/img/image.jpg" srcset="/static/img/image.jpg 1200w, /static/img/image-992w.jpg 992w, /static/img/image-768w.jpg 768w, /static/img/image-575w.jpg 575w, /static/img/image-320w.jpg 320w" class="page-header-image">

static/scss/base/_body.scss

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,29 @@ body {
1616
overflow-y: hidden;
1717
}
1818

19+
.skip-links {
20+
margin: 0 !important;
21+
padding: 0 !important;
22+
list-style-type: none;
23+
font-family: var(--font-family-tertiary);
24+
25+
a {
26+
font-size: var(--font-size-m--font-family-tertiary);
27+
position: absolute;
28+
color: var(--link--color);
29+
top: -50px;
30+
left: 15px;
31+
z-index: 100;
32+
33+
&:focus {
34+
top: 60px;
35+
background-color: white;
36+
border-radius: 4px;
37+
padding: 5px 10px;
38+
}
39+
}
40+
}
41+
1942
:root {
2043
--header-height: 552px;
2144

0 commit comments

Comments
 (0)