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(Notification): allow undefined props in TypeScript #15068

Merged

Conversation

lewandom
Copy link
Contributor

Fixes TypeScript type definitions for the Notification component family: makes kind, onCloseButtonClick and role props optional, to match component behavior (defaults set) and PropTypes definition.

Changelog

Changed

  • Notification component family no longer requires setting kind, onCloseButtonClick and role props when used in TypeScript project

Testing / Reviewing

In a TypeScript project, using Notification components properly resorts to using default values for kind, onCloseButtonClick and role props.

@lewandom lewandom requested a review from a team as a code owner October 30, 2023 18:45
@netlify
Copy link

netlify bot commented Oct 30, 2023

Deploy Preview for v11-carbon-react ready!

Name Link
🔨 Latest commit f37c163
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/65416576b566130008c6d932
😎 Deploy Preview https://deploy-preview-15068--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Oct 30, 2023

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit f37c163
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/654165760b35540008bf7f6f
😎 Deploy Preview https://deploy-preview-15068--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@tay1orjones tay1orjones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this 🙏 sorry we missed it earlier.

@github-actions github-actions bot added this pull request to the merge queue Oct 31, 2023
@tay1orjones tay1orjones removed this pull request from the merge queue due to the queue being cleared Oct 31, 2023
@tay1orjones tay1orjones enabled auto-merge October 31, 2023 20:37
@tay1orjones tay1orjones added this pull request to the merge queue Oct 31, 2023
Merged via the queue into carbon-design-system:main with commit b4a5d05 Oct 31, 2023
14 checks passed
@lewandom lewandom deleted the ts-notification-props-undefined branch November 1, 2023 10:33
tay1orjones added a commit to tay1orjones/carbon that referenced this pull request Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants