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.

Assessment

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

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.

Description

Status: Needs Triage
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

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

Getting set up

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.

More from primefaces/primereact

All issues in primefaces/primereact

Similar issues

More Accessibility issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.