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(callout): fix callout expand in production #736

Merged
merged 2 commits into from
Jan 17, 2024

Conversation

codemonkey800
Copy link
Contributor

@codemonkey800 codemonkey800 commented Jan 17, 2024

Summary

Fixes issue where the Callout component content was not expanding correctly in prdouction. This is because the property name is obfuscated in production for some environments. Setting and checking for displayName should fix the issue because it is not obfuscated in production.

Checklist

  • Default Story in Storybook
  • LivePreview Story in Storybook
  • Test Story in Storybook
  • Tests written
  • Variables from defaultTheme.ts used wherever possible
  • If updating an existing component, depreciate flag has been used where necessary
  • Chromatic build verified by @chanzuckerberg/sds-design

Fixes issue where the Callout component content was not expanding correctly in prdouction. This is
because the property `name` is obfuscated in production for some environments. Setting and checking
for `displayName` should fix the issue because it is not obfuscated in production.
Copy link
Contributor

@tihuan tihuan left a comment

Choose a reason for hiding this comment

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

Wow! Such a tricky bug 🫨 Really amazing that you found this root cause 🔥 Appreciate the PR, Jeremy!!

@tihuan
Copy link
Contributor

tihuan commented Jan 17, 2024

Awesome thanks so much for the quick update, @codemonkey800 🎉 !

Feel free to merge 🚀 !!

@codemonkey800 codemonkey800 merged commit 1a4decb into main Jan 17, 2024
7 checks passed
@codemonkey800 codemonkey800 deleted the jeremy/fix-callout-expand branch January 17, 2024 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants