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: add customSvg prop to FullPageError #5976

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

stefan-cooper
Copy link

Closes #5975

This PR adds a new optional prop to the FullPageError component. It allows you to provide a custom JSX/svg instead of the generic svg for 'custom' full page errors

What did you change?

I added a new optional property that is used when kind is custom and customSvg is defined. Otherwise, it will use the original behavior.

How did you test and verify your work?

I added a test that uses the 403 svg on the 'custom' kind and verified that it was found.

@stefan-cooper stefan-cooper requested a review from a team as a code owner August 29, 2024 11:02
@stefan-cooper stefan-cooper requested review from AlexanderMelox and anamikaanu96 and removed request for a team August 29, 2024 11:02
Copy link
Contributor

github-actions bot commented Aug 29, 2024

DCO Assistant Lite bot All contributors have signed the DCO.

Copy link

netlify bot commented Aug 29, 2024

Deploy Preview for carbon-for-ibm-products ready!

Name Link
🔨 Latest commit d090c41
🔍 Latest deploy log https://app.netlify.com/sites/carbon-for-ibm-products/deploys/66d57c037a0c260008914e0a
😎 Deploy Preview https://deploy-preview-5976--carbon-for-ibm-products.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.

@stefan-cooper stefan-cooper force-pushed the 5975-customsvg branch 2 times, most recently from 4cb6af3 to ec34195 Compare August 29, 2024 11:12
@stefan-cooper
Copy link
Author

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

@stefan-cooper
Copy link
Author

recheck

@devadula-nandan
Copy link
Contributor

waiting for issue triaging/design opinion as a first pass.

Copy link
Contributor

@AlexanderMelox AlexanderMelox left a comment

Choose a reason for hiding this comment

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

Looks good to me, like @devadula-nandan said lets see what design says

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.

[Feature Request]: Add custom svg slot on FullPageError for custom error pages
3 participants