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

feat(StaticNotification): add actionButton props #15804

Merged

Conversation

finken2
Copy link
Contributor

@finken2 finken2 commented Feb 20, 2024

Following onto #15532 , this makes the new StaticNotification more visibly like the ActionableNotifcation.

Changelog

New

  • Accept the actionButtonLabel on and onActionButtonClicked props that ActionableNotification has.
  • Storybook entry for StaticNotification with an action, with longer text so users can see how it wraps and aligns.

Changed

  • use the styles from actionableNotification instead of inlineNotification, so static is laid out like actionable inline variant.

Testing / Reviewing

  • Discussed with @tay1orjones beforehand on Slack.
  • Implemented and tested locally in storybook.
image

Let me know if any changes are needed. I'm happy to iterate on it. We're currently blocked from picking up any carbon builds until we can get this whole flow of focus grabbing on Actionable resolved.

Copy link
Contributor

github-actions bot commented Feb 20, 2024

DCO Assistant Lite bot All contributors have signed the DCO.

@finken2
Copy link
Contributor Author

finken2 commented Feb 20, 2024

I have read the DCO document and I hereby sign the DCO.

Copy link

netlify bot commented Feb 20, 2024

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 2834ed1
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/65d52a6a11167c00089bc150
😎 Deploy Preview https://deploy-preview-15804--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.

Copy link

netlify bot commented Feb 20, 2024

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit eae18ba
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/65d8b599bacb2f00087fbcfd
😎 Deploy Preview https://deploy-preview-15804--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.

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.

Awesome, thank you!

Copy link
Contributor

@guidari guidari left a comment

Choose a reason for hiding this comment

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

LGTM!

Merged via the queue into carbon-design-system:main with commit 345732e Feb 26, 2024
22 checks passed
mHuzefa pushed a commit to mHuzefa/carbon that referenced this pull request Feb 27, 2024
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.

6 participants