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

Missing Label for p-autocomplete Component in Angular 18 #16359

Closed
leoademi opened this issue Sep 9, 2024 · 1 comment
Closed

Missing Label for p-autocomplete Component in Angular 18 #16359

leoademi opened this issue Sep 9, 2024 · 1 comment
Labels
Resolution: Cannot Replicate Issue could not be replicated by Core Team

Comments

@leoademi
Copy link

leoademi commented Sep 9, 2024

Describe the bug

There is no way to add a label that is recognized by screen readers for the p-autocomplete component in PrimeNG. Despite trying various methods such as:

  • element
  • aria-label attribute
  • aria-labelledby attribute

None of these methods fix the accessibility error for missing label, as detected by the Wave Accessibility Tool. This results in the p-autocomplete component not being fully accessible for users relying on screen readers.

Environment

Angular 18.2.1
"primeng": "17.18.9",

Reproducer

No response

Angular version

18.2.1

PrimeNG version

17.18.9

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

21.5.0

Browser(s)

No response

Steps to reproduce the behavior

  1. Use the p-autocomplete component in an Angular 18 project.
  2. Attempt to add a label using any of the following approaches:
  3. Standard element associated with the component.
  4. aria-label or aria-labelledby attributes.
  5. Run an accessibility check using Wave or any other accessibility tool.

Expected behavior

The component should correctly recognize the provided label (either through a standard or aria-label) and pass accessibility checks without errors related to missing labels.

@leoademi leoademi added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Sep 9, 2024
@mehmetcetin01140 mehmetcetin01140 added Resolution: Cannot Replicate Issue could not be replicated by Core Team and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Sep 10, 2024
Copy link

We're unable to replicate your issue, if you are able to create a reproducer by using PrimeNG Issue Template or add details please edit this issue. This issue will be closed if no activities in 20 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Cannot Replicate Issue could not be replicated by Core Team
Projects
None yet
Development

No branches or pull requests

3 participants