Skip to content

[A11Y] New reply counter is focusable when not acting as a button #2664

Closed
@davwheat

Description

Bug Report

Current Behavior
The reply counter is focusable when 0 new replies are present.

image

Possible solutions

  1. Remove tabindex="0" when the new reply count is 0.
  2. Change to button element (also allows a11y tech to actually press it in the first place), and use the more syntactically correct disabled` prop.

Metadata

Assignees

Labels

type/accessibilityIssues relating to accessibility (keyboard navigation, screenreaders, text contrast, etc.)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions