Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hypha
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ots
hypha
Commits
4c8203c0
Commit
4c8203c0
authored
7 years ago
by
Chris Lawton
Browse files
Options
Downloads
Patches
Plain Diff
adding aria-labels to buttons, inputs and anchor tags to pass accessibility tests
parent
1adc88d3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
opentech/templates/base.html
+8
-8
8 additions, 8 deletions
opentech/templates/base.html
with
8 additions
and
8 deletions
opentech/templates/base.html
+
8
−
8
View file @
4c8203c0
...
...
@@ -77,7 +77,7 @@
<a
href=
"#"
class=
"link link--fixed-apply"
>
Apply
</a>
<div
class=
"header__inner wrapper wrapper--large"
>
<a
href=
"{% slugurl 'home' %}"
>
<a
href=
"{% slugurl 'home' %}"
aria-label=
"Home link"
>
<svg
class=
"header__logo header__logo--desktop"
><use
xlink:href=
"#logo-desktop"
></use></svg>
<svg
class=
"header__logo header__logo--mobile"
><use
xlink:href=
"#logo-mobile"
></use></svg>
</a>
...
...
@@ -95,7 +95,7 @@
<section
class=
"header__menus header__menus--desktop"
>
{% primarynav %}
<button
class=
"button button--contains-icons button--left-space js-search-toggle"
aria-haspopup=
"true"
>
<button
class=
"button button--contains-icons button--left-space js-search-toggle"
aria-haspopup=
"true"
aria-label=
"Toggle desktop search"
>
<svg
class=
"header__icon header__icon--open-search icon"
><use
xlink:href=
"#magnifying-glass"
></use></svg>
<svg
class=
"header__icon header__icon--close-search icon"
><use
xlink:href=
"#cross"
></use></svg>
</button>
...
...
@@ -103,11 +103,11 @@
<section
class=
"header__menus header__menus--mobile"
>
<div
class=
"header__inner header__inner--menu-open"
>
<a
href=
"{% slugurl 'home' %}"
>
<a
href=
"{% slugurl 'home' %}"
aria-label=
"Home link"
>
<svg
class=
"header__logo header__logo--mobile"
><use
xlink:href=
"#logo-mobile"
></use></svg>
</a>
<div
class=
"header__inner header__inner--mobile-buttons"
>
<button
class=
"button js-search-toggle"
aria-haspopup=
"true"
>
<button
class=
"button js-search-toggle"
aria-haspopup=
"true"
aria-label=
"Toggle mobile search"
>
<svg
class=
"header__icon header__icon--open-search header__icon--open-search-menu-open icon icon--mobile-menu"
><use
xlink:href=
"#magnifying-glass"
></use></svg>
<svg
class=
"header__icon header__icon--close-search header__icon--close-search-menu-open icon icon--mobile-menu"
><use
xlink:href=
"#cross"
></use></svg>
</button>
...
...
@@ -129,10 +129,10 @@
<div
class=
"header__search"
>
<form
action=
"{% url 'search' %}"
method=
"get"
role=
"search"
class=
"form form--header-search-desktop"
>
<button
class=
"button"
type=
"submit"
>
<button
class=
"button"
type=
"submit"
aria-label=
"Search"
>
<svg
class=
"icon icon--magnifying-glass"
><use
xlink:href=
"#magnifying-glass"
></use></svg>
</button>
<input
class=
"input input--transparent"
type=
"text"
placeholder=
"Search…"
name=
"query"
{%
if
search_query
%}
value=
"{{ search_query }}{% endif %}"
>
<input
class=
"input input--transparent"
type=
"text"
placeholder=
"Search…"
name=
"query"
{%
if
search_query
%}
value=
"{{ search_query }}{% endif %}"
aria-label=
"Search input"
>
</form>
</div>
...
...
@@ -208,11 +208,11 @@
<a
class=
"link link--button link--button-transparent"
href=
"https://run.ooni.io/nettest?tn=web_connectivity&ta=%7B%22urls%22%3A%5B%22https%3A%2F%2Fwww.opentech.fund%2F%22%5D%7D&mv=1.2.0"
>
Run OONI!
</a>
<div
class=
"footer__credits"
>
<a
href=
"https://www.bbg.gov/"
>
<a
href=
"https://www.bbg.gov/"
aria-label=
"Link to the Broadcasting Board of Governors website"
>
<svg
class=
"icon icon--footer-credit"
><use
xlink:href=
"#bbg-logo"
></use></svg>
</a>
<a
href=
"http://www.rfa.org/english/"
>
<a
href=
"http://www.rfa.org/english/"
aria-label=
"Link to the Radio Free Asia website"
>
<img
src=
"{% static 'images/radio-free-asia-logo.svg' %}"
alt=
"logo fo radio free asia"
>
</a>
</div>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment