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 Jenweber a11y updates #121

Closed
wants to merge 20 commits into from

Conversation

toddjordan
Copy link
Contributor

@jenweber here's my updates that get things working + conflict resolution. Ready to start guides updates

@toddjordan toddjordan mentioned this pull request Apr 4, 2019
@toddjordan
Copy link
Contributor Author

addressing #86

@@ -1 +1 @@
{{yield}}
<div class="map-container" aria-hidden="true" tabindex="-1"></div>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jenweber question about this: we are also assigning the "map-container" class to the parent element (see location-map.js) and actually assigning the map element to the components base element. I don't understand why we need a second div with the "map-container" class. Should we rather assign the aria-hidden and tabindex attributes to the component element itself?

Copy link
Contributor

Choose a reason for hiding this comment

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

Whichever you think is best! It was probably just an oversight to have duplicates.

@@ -3,6 +3,10 @@ import Component from '@ember/component';

export default Component.extend({
classNames: ['map-container'],
attributeBindings: ['aria-hidden:ariaHidden', 'tabindex'],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For the sake of the tutorial I'm wondering if I should just add aria-hidden and tabindex as attributes to the component invocation. I might be easier to explain then introducing tutorial users to attributeBindings.

ex. {{location-map aria-hidden="true" tabindex="-1"}}

What do you think @jenweber

@@ -23,6 +23,12 @@ module.exports = function(environment) {
}
};

ENV['ember-a11y-testing'] = {
componentOptions: {
turnAuditOff: true, // Change to run a11y audit on all dev build and serves
Copy link
Contributor Author

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.

@toddjordan toddjordan force-pushed the jenweber-a11y-updates branch from 8bec92e to 632506d Compare May 16, 2019 06:08
@toddjordan toddjordan force-pushed the jenweber-a11y-updates branch from 7540442 to e833cb5 Compare May 26, 2019 20:29
@toddjordan toddjordan force-pushed the jenweber-a11y-updates branch from e833cb5 to bbe4848 Compare May 27, 2019 18:20
@jenweber jenweber changed the title Jenweber a11y updates WIP Jenweber a11y updates May 30, 2019
@ijlee2
Copy link
Member

ijlee2 commented Sep 17, 2020

@toddjordan @jenweber I was wondering if this pull request can be closed now. Would this be okay with you?

@chancancode
Copy link
Contributor

👍 I think we are good! If anything from here is still needed on the latest version let’s reopen this against ember-learn/super-rentals-tutorial

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.

4 participants