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

fix(radio-group): wrong aria-checked value on load when used with ng-value #9790

Merged
merged 1 commit into from
Nov 15, 2016

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Oct 9, 2016

  • Fixes all of the radio buttons within a radio group having aria-checked set to true on load, when using ng-value.
  • Cleans up the radioButton directive.

Fixes #9400.

@crisbeto crisbeto added a11y This issue is related to accessibility needs: review This PR is waiting on review from the team labels Oct 9, 2016
@crisbeto crisbeto added this to the 1.1.2 milestone Oct 9, 2016
@ThomasBurleson ThomasBurleson added needs: presubmit and removed needs: review This PR is waiting on review from the team labels Oct 9, 2016
element.addClass(CHECKED_CSS);
if (element[0].parentNode.nodeName.toLowerCase() !== 'md-radio-group') {
// If the radioButton is inside a div, then add class so highlighting will work
elemet.parent().toggleClass(CHECKED_CSS, checked);
Copy link
Member

Choose a reason for hiding this comment

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

Typo: elemet. Google presubmit caught this.

@ThomasBurleson
Copy link
Contributor

@crisbeto - ping regard elemet mis-spelling.

…value

* Fixes all of the radio buttons within a radio group having `aria-checked` set to true on load, when using `ng-value`.
* Cleans up the `radioButton` directive.

Fixes angular#9400.
@crisbeto crisbeto force-pushed the 9400/radio-group-checked branch from 0eb8bb8 to f25ef92 Compare October 22, 2016 08:45
@crisbeto
Copy link
Member Author

Fixed @ThomasBurleson @jelbourn. We should really get that linter set up...

@ThomasBurleson
Copy link
Contributor

@crisbeto - sgtm. Btw - I missed the spelling issue myself while reviewing the code.

@kara kara added pr: merge ready This PR is ready for a caretaker to review and removed needs: presubmit labels Nov 15, 2016
@kara kara merged commit 2bbf401 into angular:master Nov 15, 2016
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 pr: merge ready This PR is ready for a caretaker to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants