Skip to content
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] Global accessibility awareness day #26

Conversation

toddjordan
Copy link
Contributor

@toddjordan toddjordan commented May 20, 2016

Install ember-a11y-testing
Install ember-a11y for focusing-outlet
clean up axe errors
decorate filter behavior with aria labels to help with screen readers

This is the start to an accessibility section in the tutorial.

excuse the messy diff, dependent on 2 prs in front of it. (acceptance test, style)

Updates for style

add installed style addon

small tweaks

another minor fix

Update simple component to display styles, and to toggle image size

style addon published to npm

display maps properly

make tomster a background image, so that it comes with the style addon

Ember Rentals -> Super Rentals
@@ -1,2 +1,4 @@
City: {{input value=value key-up=(action 'handleFilterEntry')}}
<label for="filterByCity" class="screen-reader">Filter By City</label>
{{input id="filterByCity" value=value key-up=(action 'handleFilterEntry') class="light" placeholder="Filter By City" role="combobox" aria-expanded="true" aria-autocomplete="list" aria-owns="rental-list"}}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible for us to instead just use an input tag? Much simpler implementation, and is literally what the DOM already provides no abstraction.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, as long was we can provide an action for key-up.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://developer.mozilla.org/en-US/docs/Web/Events/keyup is part of the DOM, so it would just work

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so implement a keyUp event handler in the component. Can do. Sorry, its late :-P

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no just <input onkeyup={{action ... no component needed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought that too and tried with initial lack of success. will take another look. thx

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

without the input helper, what is the best way to provide the value to the action?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx, got it onkeyup={{action "handleFilterEntry" value="target.value"}}

@toddjordan toddjordan force-pushed the global-accessibility-awareness-day branch 4 times, most recently from 52f17e1 to 0020012 Compare May 20, 2016 06:31
simpler input

remove console.logs

remove another console log

fix role for options

couple of more improvements
@toddjordan toddjordan force-pushed the global-accessibility-awareness-day branch from 0020012 to ba31fc1 Compare May 20, 2016 07:10
This was referenced Dec 10, 2017
@jenweber
Copy link
Contributor

jenweber commented Dec 26, 2017

Closing this due to significant overhaul in the following PRs/issues:
#87
ember-learn/ember-cli-tutorial-style#2
#86
emberjs/guides#2152

Based on Slack discussion, we're paring this down to the bare minimum changes - enough to introduce a11y to users and give them pointers to the right places to keep learning.

@jenweber jenweber closed this Dec 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants