Skip to content

Commit 7818f12

Browse files
author
Mike Taylor
authored
Merge pull request #2489 from patrickhlauke/phl-fixes2
webcompat site: tweak/remove aria-label in footer links, make search form in top nav only focusable when visible
2 parents 55c2af6 + a64655b commit 7818f12

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

webcompat/static/css/src/nav.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,15 @@
8787
top: 1px;
8888
transform: rotateY(-90deg);
8989
transition: all .2s ease 0s;
90+
visibility: hidden;
9091
width: 100%;
9192
z-index: 1200;
9293
}
9394

9495
.is-active #search-bar {
9596
transform: rotateY(0);
9697
transition: all .5s ease 0s;
98+
visibility: visible;
9799
}
98100

99101
#search-bar .text-field {

webcompat/templates/shared/footer.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,37 @@
22
<section class="grid-row">
33
<ul class="grid-cell x2 footer-list">
44
<li class="footer-item{% if request.url_rule.endpoint == 'index' %} active{% endif %}">
5-
<a class="footer-item-link" aria-label="go to home" href="{{ url_for('index') }}">
5+
<a class="footer-item-link" href="{{ url_for('index') }}">
66
Home
77
</a>
88
</li>
99
<li class="footer-item{% if request.url_rule.endpoint == 'show_issues' %} active{% endif %}">
10-
<a class="footer-item-link" aria-label="go to list of isses" href="{{ url_for('show_issues') }}">
10+
<a class="footer-item-link" href="{{ url_for('show_issues') }}">
1111
List of issues
1212
</a>
1313
</li>
1414
<li class="footer-item{% if request.url_rule.endpoint == 'about' %} active{% endif %}">
15-
<a class="footer-item-link" aria-label="go to about" href="{{ url_for('about') }}">
15+
<a class="footer-item-link" href="{{ url_for('about') }}">
1616
About
1717
</a>
1818
</li>
1919
<li class="footer-item{% if 'contributors' in request.url_rule.endpoint %} active{% endif %}">
20-
<a class="footer-item-link" aria-label="go to contribute" href="{{ url_for('contributors') }}">
20+
<a class="footer-item-link" href="{{ url_for('contributors') }}">
2121
Contribute
2222
</a>
2323
</li>
2424
<li class="footer-item{% if request.url_rule.endpoint == 'contact' %} active{% endif %}">
25-
<a class="footer-item-link" aria-label="get contact information" href="/contact">
25+
<a class="footer-item-link" href="/contact">
2626
Contact
2727
</a>
2828
</li>
2929
<li class="footer-item{% if request.url_rule.endpoint == 'privacy' %} active{% endif %}">
30-
<a class="footer-item-link" aria-label="go to privacy policy" href="{{ url_for('privacy') }}">
30+
<a class="footer-item-link" href="{{ url_for('privacy') }}">
3131
Privacy Policy
3232
</a>
3333
</li>
3434
<li class="footer-item">
35-
<a class="footer-item-link" aria-label="go to code of conduct" href="https://github.com/webcompat/webcompat.com/blob/master/CODE_OF_CONDUCT.md">
35+
<a class="footer-item-link" href="https://github.com/webcompat/webcompat.com/blob/master/CODE_OF_CONDUCT.md">
3636
Code of Conduct
3737
</a>
3838
</li>
@@ -73,14 +73,14 @@
7373

7474
<ul class="grid-cell x1 footer-sub-icons">
7575
<li class="footer-icon icon-twitter">
76-
<a class="footer-item-link" aria-label="open Twitter in a new tab" href="https://twitter.com/webcompat/with_replies" target="_blank">
77-
<svg class="icon" role="presentation" viewBox="0 0 30 30" aria-hidden="true">
76+
<a class="footer-item-link" aria-label="Twitter (opens in a new tab)" href="https://twitter.com/webcompat/with_replies" target="_blank">
77+
<svg class="icon" role="presentation" viewBox="0 0 30 30 aria-hidden="true">
7878
<use xlink:href="#svg-twitter" />
7979
</svg>
8080
</a>
8181
</li>
8282
<li class="footer-icon icon-twitter">
83-
<a class="footer-item-link" aria-label="open Github in a new tab" href=" https://github.com/webcompat/webcompat.com/" target="_blank">
83+
<a class="footer-item-link" aria-label="GitHub (opens in a new tab)" href=" https://github.com/webcompat/webcompat.com/" target="_blank">
8484
<svg class="icon" role="presentation" viewBox="0 0 30 30" aria-hidden="true">
8585
<use xlink:href="#svg-github2" />
8686
</svg>

0 commit comments

Comments
 (0)