-
-
Notifications
You must be signed in to change notification settings - Fork 178
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
WIP Jenweber a11y updates #121
Closed
Closed
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
7c7f6ae
Write acceptance tests for super rentals
toddjordan ba31fc1
make super-rentals accessible
toddjordan 67ce4e6
Buggy, merge branch 'global-accessibility-awareness-day' of https://g…
jenweber 1e7adf0
revert some aria roles bc they are not in the same node #86
jenweber da32ced
address color contrast problems #86
jenweber cc96e56
revert input type #86
jenweber f9027c1
add accessibility checks to tests #86
jenweber d4cc8ba
correct alt text for images, a11y #86
jenweber ed7a8b8
fix element that shouldn't be hidden #86
jenweber e730be8
revert some js edits that aren't totally necessary #86
jenweber c845bf9
fix remaining outlets #86
jenweber cea57f4
switch back to normal outlets, remove ember-a11y #86
jenweber 1e32649
document a11y testing usage #86
jenweber f2853c8
disable a11y audit execpt in testing #86
jenweber c15a5a0
Merge branch 'master' into a11y-updates
toddjordan 14a8378
Fixes after conflict resolution
toddjordan 95485e6
Define map container on the base component element, as opposed to in …
toddjordan cf673d0
Add rental property type test (#120)
toddjordan 632506d
Additional a11y stuff
toddjordan bbe4848
Additional accessiblity updates after screen reader testing
toddjordan 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 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 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 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 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 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 |
---|---|---|
@@ -1,7 +1,11 @@ | ||
<label for="filterByCity" class="screen-reader">Filter By City</label> | ||
{{input | ||
id="filterByCity" | ||
value=this.value | ||
key-up=(action "handleFilterEntry") | ||
class="light" | ||
placeholder="Filter By City" | ||
role="search" | ||
}} | ||
<span class="result-status" role="status">{{this.results.length}} results found {{if this.value (concat "for \"" this.value "\"")}}</span> | ||
{{yield this.results}} |
This file contains 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 |
---|---|---|
@@ -1 +1 @@ | ||
{{yield}} | ||
{{yield}} |
This file contains 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 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 |
---|---|---|
@@ -1,20 +1,24 @@ | ||
<div class="jumbo"> | ||
<article class="jumbo"> | ||
<div class="right tomster"></div> | ||
<h2>Contact Us</h2> | ||
<p> | ||
Super Rentals Representatives would love to help you<br> | ||
choose a destination or answer any questions you may have. | ||
</p> | ||
<address> | ||
Super Rentals HQ | ||
<header> | ||
<h2 aria-live="polite">Contact Us</h2> | ||
</header> | ||
<section> | ||
<p> | ||
1212 Test Address Avenue<br> | ||
Testington, OR 97233 | ||
Super Rentals Representatives would love to help you<br> | ||
choose a destination or answer any questions you may have. | ||
</p> | ||
<a href="tel:503.555.1212">+1 (503) 555-1212</a><br> | ||
<a href="mailto:[email protected]">[email protected]</a> | ||
</address> | ||
{{#link-to "about" class="button"}} | ||
About | ||
{{/link-to}} | ||
</div> | ||
<address> | ||
Super Rentals HQ | ||
<p> | ||
1212 Test Address Avenue<br> | ||
Testington, OR 97233 | ||
</p> | ||
<a href="tel:503.555.1212">+1 (503) 555-1212</a><br> | ||
<a href="mailto:[email protected]">[email protected]</a> | ||
</address> | ||
{{#link-to "about" class="button"}} | ||
About | ||
{{/link-to}} | ||
</section> | ||
</article> |
This file contains 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 |
---|---|---|
@@ -1,9 +1,15 @@ | ||
<div class="jumbo"> | ||
<div class="right tomster"></div> | ||
<h2>Welcome!</h2> | ||
<p>We hope you find exactly what you're looking for in a place to stay.</p> | ||
{{#link-to "about" class="button"}} | ||
About Us | ||
{{/link-to}} | ||
</div> | ||
{{outlet}} | ||
<article class="jumbo"> | ||
<div class="right tomster" role="img" aria-labelledby="logo-caption"> | ||
<p id="logo-caption" class="screen-reader">Learning Tomster Mascot</p> | ||
</div> | ||
<header> | ||
<h2 aria-live="polite">Welcome!</h2> | ||
</header> | ||
<section> | ||
<p>We hope you find exactly what you're looking for in a place to stay.</p> | ||
{{#link-to "about" class="button"}} | ||
About Us | ||
{{/link-to}} | ||
</section> | ||
</article> | ||
{{outlet}} |
This file contains 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 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 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 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { module, test } from 'qunit'; | ||
import { setupRenderingTest } from 'ember-qunit'; | ||
import { render } from '@ember/test-helpers'; | ||
import hbs from 'htmlbars-inline-precompile'; | ||
|
||
module('Integration | Component | rental property type', function (hooks) { | ||
setupRenderingTest(hooks); | ||
|
||
// Replace this with your real tests. | ||
test('it renders correctly for a Standalone rental', async function(assert) { | ||
this.set('inputValue', 'Estate'); | ||
await render(hbs`{{rental-property-type inputValue}}`); | ||
assert.equal(this.element.textContent.trim(), 'Standalone'); | ||
}); | ||
|
||
test('it renders correctly for a Community rental', async function(assert) { | ||
this.set('inputValue', 'Apartment'); | ||
await render(hbs`{{rental-property-type inputValue}}`); | ||
assert.equal(this.element.textContent.trim(), 'Community'); | ||
}); | ||
|
||
}) |
Oops, something went wrong.
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.
should we turn on instead of adding the explicit test cases. I don't have super intimate knowledge of the addon so unsure if its an equal substitute.