-
Notifications
You must be signed in to change notification settings - Fork 648
Accessibility fixes (and tests) #1227
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
0929810
fix(templates/application): Add labels to search input fields
sorin-davidoi c00715f
fix(templates/application): Logo should not be focusable
sorin-davidoi dd877cc
fix(styles/home/button): Use hover style for focus
sorin-davidoi d3ff8cd
fix(templates/application): Use semantics HTML tags (nav, main, footer)
sorin-davidoi bd4c191
fix(templates/index): Use section for each crate list
sorin-davidoi 89c8ede
fix(templates/components/crate-list): Use ol instead of ul
sorin-davidoi 3e94117
fix(templates/application): Remove tabindex="1" from search fields
sorin-davidoi f0c8377
fix(templates/application): Add alt text for the "For me on GitHub" link
sorin-davidoi 72407de
fix(styles/app/button): Do not set outline: 0
sorin-davidoi 522eb3e
fix(styles/me): Set focus style for load more button
sorin-davidoi 1aa4b29
fix(templates/application): Move fork button to the end of the document
sorin-davidoi ea4fb9c
fix(componentns/user-avatar): Add alt text (name, username)
sorin-davidoi 961ba48
fix(crate/version): Nest li directly inside ul
sorin-davidoi 7c58178
fix(templates/crate/version): Add title to copy-to-clipboard button
sorin-davidoi c27533d
feat(templates/crate/version): Use section for readme and authorship
sorin-davidoi 4a36d50
fix(templates/crate/owners): Add label to username input field
sorin-davidoi 274c841
chore(npm/dev-dependencies): Install ember-a11y-testing
sorin-davidoi ed4333a
test(acceptance): Create accessibility tests
sorin-davidoi 1ff0a23
feat(config/environment): Disable accessibility audit in during devel…
sorin-davidoi fc5a680
fix(templates/index): Use aria-busy and show loader using CSS
sorin-davidoi 2cd5ac1
fix(templates/crates): Make pagination accessible
sorin-davidoi 8d2157a
fix(templates/crate/version): Change aria-label to Crate metadata
sorin-davidoi e7a8209
fix(styles/home): Update custom home crate style from div to section
sorin-davidoi 0682d78
fix(themes/application): Invalid markup
sorin-davidoi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,8 @@ | |
<img src='/assets/forkme.png'/> | ||
</a> | ||
|
||
<div id="header"> | ||
{{#link-to "index"}} | ||
<nav id="header"> | ||
{{#link-to "index" tabindex="-1"}} | ||
<img src="/assets/Cargo-Logo-Small.png" id="logo" | ||
height=100 width=100 alt="Cargo Logo"/> | ||
{{/link-to}} | ||
|
@@ -26,6 +26,7 @@ | |
tabindex="1" | ||
required | ||
data-test-search-input> | ||
<label for="cargo-desktop-search">Search</label> | ||
</form> | ||
|
||
<div class='nav'> | ||
|
@@ -100,25 +101,26 @@ | |
|
||
<div class='links'> | ||
</div> | ||
</div> | ||
</nav> | ||
|
||
<form id='mobile-search' class='search' action='/search' {{ action "search" on="submit" }} > | ||
<input type="text" class="search" name="q" | ||
<input type="text" class="search" name="q" id="cargo-mobile-search" | ||
placeholder="Search" | ||
value={{searchQuery}} | ||
oninput={{action (mut searchQuery) value="target.value"}} | ||
autocorrect="off" | ||
tabindex="1" | ||
required> | ||
<label for="cargo-mobile-search">Search</label> | ||
</form> | ||
|
||
<div id="main" class='inner-content'> | ||
<main id="main" class='inner-content'> | ||
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. This is not ideal since each page should define it's own |
||
{{flash-message}} | ||
|
||
{{outlet}} | ||
</div> | ||
</main> | ||
|
||
<div class='after-main-links'> | ||
<footer class='after-main-links'> | ||
{{#link-to 'install'}}Install{{/link-to}} | ||
<span class="sep">|</span> | ||
<a href='http://doc.crates.io'>Getting Started</a> | ||
|
@@ -128,4 +130,4 @@ | |
<a href='mailto:[email protected]'>Send us an email</a> | ||
<span class="sep">|</span> | ||
{{#link-to 'policies'}}Policies{{/link-to}} | ||
</div> | ||
</footer> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the
div
on line 146 of this file needs to be updated to asection
as well, otherwise the columns on the home page take up a variable amount of width when they should be taking up ~1/3 of the width, which starts happening at this commit.