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

docs(Alert.mdx): Removing onClose from component usage examples and a… #591

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

MarcosViniciusPC
Copy link
Contributor

…dding component-specific exampl

Description

https://jirasoftware.catho.com.br/browse/QTM-784

Review guide

  • Doc (yarn storybook)
  • Code review

Note

When the onClose prop is not passed, the close button is not displayed. Therefore, we do not need to implement this feature. I believe that this task was created because in the doc the close button is always visible, as an onClose function is passed to all usage examples, not making it clear that the prop is optional. I'm just going to update the doc, adding an example of specific use of the Alert component with the option to show the close button, and from the other examples remove the onClose prop so as not to display the button.

Copy link

sonarqubecloud bot commented Oct 9, 2024

@MarcosViniciusPC MarcosViniciusPC merged commit 98b46f8 into master Oct 11, 2024
3 checks passed
@MarcosViniciusPC MarcosViniciusPC deleted the QTM-784 branch October 11, 2024 16:33
Copy link

🎉 This PR is included in version 10.0.0-beta.16 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link

🎉 This PR is included in version 9.33.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

4 participants