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

p-tag: tags are not accessible by tabbing #14925

Closed
akashuwtw opened this issue Mar 1, 2024 · 3 comments
Closed

p-tag: tags are not accessible by tabbing #14925

akashuwtw opened this issue Mar 1, 2024 · 3 comments
Assignees
Labels
Component: Accessibility Issue or pull request is related to WCAG or ARIA PRO Support Issue was reported by PRO User

Comments

@akashuwtw
Copy link

Describe the bug

p-tags are not accessible by tabbing and does not receive keyboard focus

Environment

OS: Windows 10

Reproducer

No response

Angular version

16.2.7

PrimeNG version

16.5.1

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18.16.0

Browser(s)

Chrome 121.0.6167.161, Edge 121.0.2277.112

Steps to reproduce the behavior

<p-tag value="Tag 1"></p-tag>

Expected behavior

p-tag should receive keyboard focus via tabbing

@akashuwtw akashuwtw added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Mar 1, 2024
@SoyDiego
Copy link
Contributor

SoyDiego commented Mar 2, 2024

Hi @akashuwtw you should add tabindex="0". In the docs you can find this information:

In case badges need to be tabbable, tabIndex can be added to implement custom key handlers. 

Here you have a example working:

tab

@mehmetcetin01140 mehmetcetin01140 added Component: Accessibility Issue or pull request is related to WCAG or ARIA and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Mar 4, 2024
@akashuwtw
Copy link
Author

Thanks @SoyDiego. It worked.

@SoyDiego
Copy link
Contributor

SoyDiego commented Mar 4, 2024

Thanks @SoyDiego. It worked.

Perfect. You can close the issue if it's solved :)

@cetincakiroglu cetincakiroglu added this to the 17.10.0 milestone Mar 5, 2024
@cetincakiroglu cetincakiroglu added the PRO Support Issue was reported by PRO User label Mar 5, 2024
@cetincakiroglu cetincakiroglu removed this from the 17.10.0 milestone Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Accessibility Issue or pull request is related to WCAG or ARIA PRO Support Issue was reported by PRO User
Projects
None yet
Development

No branches or pull requests

4 participants