-
Notifications
You must be signed in to change notification settings - Fork 210
Add aria hints where labels were missing or unclear #354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
<div class="pure-menu pure-menu-horizontal"> | ||
<form action="/releases/search" method="GET" class="landing-search-form-nav"> | ||
{{#unless varsb.show_search_form}} | ||
<input class="search-input-nav" name="query" tabindex="-1" type="text" placeholder="Find crate"{{#if varss.search_query}} value="{{varss.search_query}}"{{/if}}> | ||
<input class="search-input-nav" name="query" aria-label="Find crate by search query" tabindex="-1" type="text" placeholder="Find crate"{{#if varss.search_query}} value="{{varss.search_query}}"{{/if}}> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The sentence here doesn't sound very nice... What about "Input to search crate"? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Users should already know this is an input, based on the tag. The label should focus on what a user can expect to achieve by submitting the form with this field filled. |
||
{{/unless}} | ||
<a href="/" class="pure-menu-heading pure-menu-link"><i class="fa fa-cubes fa-fw"></i><span class="title"> Docs.rs</span></a> | ||
{{#with content.crate_details}} | ||
|
@@ -93,7 +93,7 @@ | |
<a href="/crate/{{name}}/{{version}}/source/" title="Browse source of {{name}}-{{version}}" class="pure-menu-link{{#if ../../varsb.package_source_tab}} pure-menu-active{{/if}}"><i class="fa fa-fw fa-folder-open-o"></i><span class="title"> Source</span></a> | ||
</li> | ||
<li class="pure-menu-item pure-menu-has-children pure-menu-allow-hover"> | ||
<a href="#" class="pure-menu-link"><i class="fa fa-fw fa-gears"></i><span class="title"> Platform</span></a> | ||
<a href="#" class="pure-menu-link" aria-label="Platform"><i class="fa fa-fw fa-gears"></i><span class="title"> Platform</span></a> | ||
secretfader marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<ul class="pure-menu-children"> | ||
{{#each doc_targets}} | ||
<li class="pure-menu-item"><a href="/{{../../content.crate_details.name}}/{{../../content.crate_details.version}}/{{this}}/{{../../content.crate_details.target_name}}/" class="pure-menu-link">{{this}}</a></li> | ||
|
Uh oh!
There was an error while loading. Please reload this page.