canonical / canonical/react-components

Button accessibility

Open
#618 2 comments 0 reactions 0 assignees View on GitHub
Accessibility Bug 🐛 P3 Triaged Triaged: v4
Dominant language
TypeScript
Stars
151
Forks
74
Avg merge
1d 2h
Merged PRs (30d)
11

Description

As mentioned in [MDN web docs](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/button_role), adding `role="button"` will make an element appear as a button control to a screen reader.

Maybe the `Button` component should have the property `role="button"` to improve it's accessibly.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.