Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Refactor to use ngAria #340

Closed
wants to merge 3 commits into from
Closed

Refactor to use ngAria #340

wants to merge 3 commits into from

Conversation

marcysutton
Copy link
Contributor

This PR incorporates @btford's commits from #316 and relates to #314.

One outstanding issue with this change:

  1. material-switch needs refactoring to be supported (Material-switch needs refactoring #321), ARIA-specific tests have been commented out

@btford
Copy link
Contributor

btford commented Sep 29, 2014

👏

@btford
Copy link
Contributor

btford commented Sep 29, 2014

I'm noticing a lot of whitespace noise in these diffs. Can we make sure that everyone on material design configures their editor to strip whitespace from EOL on save?

@marcysutton
Copy link
Contributor Author

@btford totally. I'll do that now.

@marcysutton
Copy link
Contributor Author

Actually, it looks like I'm already configured to strip trailing spaces--the noise in this PR is from my text editor being configured differently than the other authors.

@@ -20,8 +21,8 @@ describe('<material-switch>', function() {

expect(cbElements.eq(0).hasClass(CHECKED_CSS)).toEqual(false);
expect(cbElements.eq(1).hasClass(CHECKED_CSS)).toEqual(true);
expect(cbElements.eq(0).attr('aria-checked')).toEqual('false');
expect(cbElements.eq(1).attr('aria-checked')).toEqual('true');
// expect(cbElements.eq(0).attr('aria-checked')).toEqual('false');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Commented out while awaiting #321

@marcysutton
Copy link
Contributor Author

Whitespace cleaned up, this is ready to go.

@marcysutton marcysutton added resolution: fixed a11y This issue is related to accessibility and removed in progress labels Sep 30, 2014
@@ -12,7 +12,7 @@ angular.module('material.components.button', [
.directive('materialButton', [
'ngHrefDirective',
'$materialInkRipple',
'$aria',
'$materialAria',
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice

@marcysutton
Copy link
Contributor Author

Closed with 03051d3

@marcysutton marcysutton closed this Oct 2, 2014
@marcysutton marcysutton deleted the refactor-ng-aria branch October 6, 2014 01:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a11y This issue is related to accessibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants