You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the recent 1.41.1 version of @Carbon/react the InlineNotification component is now giving an error that it wasn't giving before. Typescript is now requiring a value for the role attribute and the onCloseButtonClick attribute. The documentation for InlineNotification indicates that these attributes have default values. https://react.carbondesignsystem.com/?path=/story/components-notifications-toast--default
For role the docs indicate that the default is "status". For onCloseButtonClick the default is suppose to be a noop. Thanks!
Reproduction/example
NA
Steps to reproduce
Create in InlineNotification component without role or onCloseButtonClick . Typescript will give a compilation error, preventing the application from starting.
The work around is to add these attributes to the component.
Suggested Severity
Severity 3 = User can complete task, and/or has a workaround within the user experience of a given component.
Package
@carbon/react
Browser
Firefox
Package version
v1.41.1
React version
v17.0.2
Description
In the recent 1.41.1 version of @Carbon/react the InlineNotification component is now giving an error that it wasn't giving before. Typescript is now requiring a value for the role attribute and the onCloseButtonClick attribute. The documentation for InlineNotification indicates that these attributes have default values. https://react.carbondesignsystem.com/?path=/story/components-notifications-toast--default
For role the docs indicate that the default is "status". For onCloseButtonClick the default is suppose to be a noop. Thanks!
Reproduction/example
NA
Steps to reproduce
Create in InlineNotification component without role or onCloseButtonClick . Typescript will give a compilation error, preventing the application from starting.
The work around is to add these attributes to the component.
Suggested Severity
Severity 3 = User can complete task, and/or has a workaround within the user experience of a given component.
Application/PAL
React app
Code of Conduct
The text was updated successfully, but these errors were encountered: