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

RadioButton - aria-checked attribute is missing #17693

Open
4 tasks
clude86 opened this issue Feb 17, 2025 · 0 comments
Open
4 tasks

RadioButton - aria-checked attribute is missing #17693

clude86 opened this issue Feb 17, 2025 · 0 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@clude86
Copy link

clude86 commented Feb 17, 2025

Describe the bug

When selecting a radio button, the “aria-checked” tag is not set. It is expected that the “aira-checked” is set when selecting:

<input type="radio" class="p-radiobutton-input" value="Cheese" id="ingredient1" name="pizza" aria-checked="true" pc52="">

Pull Request Link

No response

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

No response

Reproducer

https://v17.primeng.org/radiobutton

Environment

PrimeNG v17 (17.18.15) is being used with Angular v17. The issue also replicable on https://v17.primeng.org/radiobutton

Angular version

18.2.8

PrimeNG version

v17 (LTS Only)

Node version

22.5.1

Browser(s)

No response

Steps to reproduce the behavior

  1. Select a radio button element by clicking on label
  2. Check the HTML-Code of the selected element "aria-checked = true" is excpeted

Expected behavior

On selecting the radio button by clicking on label, the aria-checked property of the input[type="radio"] should set to "aria-checked = true"

@clude86 clude86 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant