Sage / carbon

Carbon by Sage | ReactJS UI Component Library
https://carbon.sage.com
Apache License 2.0
278 stars 85 forks source link

Invalid prop warnings coming from style system props. #5603

Open Chris3y opened 2 years ago

Chris3y commented 2 years ago

Current behaviour

Now getting lots of console warnings regarding prop validation from prop types defined by third-party library.

Expected behaviour

gridColumn prop on GridItem component should accept string value

CodeSandbox or Storybook URL

https://codesandbox.io/s/style-prop-types-not-being-parsed-by-ts-ps90bb?file=/src/index.js

JIRA Ticket (Sage Only)

No response

Suggested Solution

Check TS pasring.

Carbon Version

111.8.4

Design Tokens Version

No response

What browsers are you seeing the problem on?

Chrome

What Operating System are you seeing the problem on?

Windows

Anything else we should know?

Discussed on slack first.

Confidentiality

nicktitchmarsh commented 2 years ago

FE-5544 has been raised to address this