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

fix(InlineNotification): make statusIconDescription optional #5528

Merged
2 changes: 0 additions & 2 deletions packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3567,7 +3567,6 @@ Map {
"type": "string",
},
"statusIconDescription": Object {
"isRequired": true,
"type": "string",
},
"subtitle": Object {
Expand Down Expand Up @@ -3633,7 +3632,6 @@ Map {
"type": "string",
},
"statusIconDescription": Object {
"isRequired": true,
"type": "string",
},
"subtitle": Object {
Expand Down
8 changes: 4 additions & 4 deletions packages/react/src/components/Notification/Notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,12 +358,12 @@ ToastNotification.propTypes = {
/**
* Provide a description for "close" icon that can be read by screen readers
*/
iconDescription: PropTypes.string.isRequired,
iconDescription: PropTypes.string,

/**
* Provide a description for "status" icon that can be read by screen readers
*/
statusIconDescription: PropTypes.string.isRequired,
statusIconDescription: PropTypes.string,

/**
* By default, this value is "toast". You can also provide an alternate type
Expand Down Expand Up @@ -504,12 +504,12 @@ InlineNotification.propTypes = {
/**
* Provide a description for "close" icon that can be read by screen readers
*/
iconDescription: PropTypes.string.isRequired,
iconDescription: PropTypes.string,

/**
* Provide a description for "status" icon that can be read by screen readers
*/
statusIconDescription: PropTypes.string.isRequired,
statusIconDescription: PropTypes.string,

/**
* By default, this value is "inline". You can also provide an alternate type
Expand Down