primefaces / primefaces/primereact

Calendar (Accessibility issue): Calendar icon is not focused

Open
#8,505 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Status: Needs Triage
Dominant language
CSS
Stars
8.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

The calendar icon is not focusable when showIcon is enabled and you navigate using Tab.

Reproducible on the primereact documentation page: https://v9.primereact.org/calendar/

Reproducer

https://stackblitz.com/run?file=src%2FApp.js

System Information
"primereact": "^10.9.7",
"react": "^18.2.0",
Steps to reproduce the behavior
  1. Set showIcon on the Calendar component
  2. Navigate via tab on the keyboard to the calendar
  3. The calendar icon is not focused
Expected behavior

When navigating to the Calendar, the calendar icon is focused

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Run the linked StackBlitz reproducer from src/App.js and compare its keyboard behavior with the Calendar documentation example. Investigate the Calendar component with showIcon enabled; done means the calendar icon receives focus during Tab navigation.

Written by the indexing model from the issue text.

Assessment

Tech stack
react
Domain
accessibility, frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.