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

React ToggleSmall params typing requires aria-label parameter #7327

Closed
2 tasks done
brandones opened this issue Nov 20, 2020 · 0 comments · Fixed by #7380
Closed
2 tasks done

React ToggleSmall params typing requires aria-label parameter #7327

brandones opened this issue Nov 20, 2020 · 0 comments · Fixed by #7380

Comments

@brandones
Copy link
Contributor

brandones commented Nov 20, 2020

  • carbon-components
  • carbon-components-react

In a Typescript project using carbon-components-react, try creating a <ToggleSmall> element.

That element requires prop aria-label, which is not a valid JSX prop name. I don't know how that prop even can be provided. So ToggleSmall is unusable without disabling type checking.

I expect this would be fixed by #6653 , which I would love to see happen.

Using Typescript 4.0.5

toggle-small

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants