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

aria-checked not being set on master branch #114

Closed
barryofguilder opened this issue Feb 24, 2022 · 3 comments
Closed

aria-checked not being set on master branch #114

barryofguilder opened this issue Feb 24, 2022 · 3 comments

Comments

@barryofguilder
Copy link
Contributor

I upgrade my Ember app to use the latest commit on the master branch of ember-radio-button to remove all the deprecation warnings. It seems that the latest code on the master branch no longer sets the aria-checked attribute.

{{! component usage }}
<RadioButton @value='yes' @groupValue='yes' @name='response' />

{{! `master` branch rendered HTML }}
<input name="response" type="radio" value="yes">

{{! version 2.0.1 rendered HTML }}
<input aria-checked="true" name="response" type="radio" value="yes">

I've reproduced this issue with both an Ember 3.28 app as well as a 4.1 app.

@barryofguilder
Copy link
Contributor Author

I created PR #115 to add the test assertions to show that they are currently failing to set the aria-checked attribute.

@barryofguilder
Copy link
Contributor Author

barryofguilder commented Mar 4, 2022

I'm wondering if when using the radio button without the yielded content, it should be setting the @checked argument of the component rather than the checked HTML attribute of the underlying input field.

See:

@raycohen
Copy link
Contributor

raycohen commented Dec 7, 2022

This is fixed in 3.0.0-beta.1 via #141

@raycohen raycohen closed this as completed Dec 7, 2022
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

No branches or pull requests

2 participants