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

doc: adding event listener example to rh-alert #690

Merged
merged 6 commits into from Jan 14, 2023

Conversation

brianferry
Copy link
Collaborator

We had discussed sometime back about adding documentation to the rh-alert README outlining how you could add your own custom event handler for rh-alert on a close event. This is adding that code as well as a reasoning behind why you would use this.

@changeset-bot
Copy link

changeset-bot bot commented Jan 3, 2023

⚠️ No Changeset found

Latest commit: 359bada

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@netlify
Copy link

netlify bot commented Jan 3, 2023

Deploy Preview for red-hat-design-system ready!

Name Link
🔨 Latest commit 359bada
🔍 Latest deploy log https://app.netlify.com/sites/red-hat-design-system/deploys/63c18b259863cb000b01e54c
😎 Deploy Preview https://deploy-preview-690--red-hat-design-system.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 settings.

@brianferry brianferry marked this pull request as ready for review January 5, 2023 15:28
@brianferry brianferry enabled auto-merge (squash) January 5, 2023 15:28
@brianferry brianferry merged commit 5a3cdbb into main Jan 14, 2023
7 checks passed
@brianferry brianferry deleted the doc/rh-alert-adding-event-listener-example branch January 14, 2023 19:32
nikkimk pushed a commit that referenced this pull request Jan 23, 2023
* doc: adding event listener example to rh-alert

* doc: rh-alert event listener documentation reasoning

* fix(alert): remove state switching to error after element is removed

* docs(alert): adding section for preventing default close behavior to readme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants