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: emojis from showing up small in ULandingCard #75

Merged
merged 2 commits into from
Feb 29, 2024
Merged

Conversation

cpreston321
Copy link
Member

@cpreston321 cpreston321 commented Feb 28, 2024

πŸ”— Linked issue

#76

❓ Type of change

  • πŸ“– Documentation (updates to the documentation, readme, or JSdoc annotations)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Resolves: #76

This PR checks for emoji regex and applies the correct styles for them to match icons.

Before After
CleanShot 2024-02-28 at 14 09 41@2x CleanShot 2024-02-28 at 14 12 04@2x

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

Copy link

cloudflare-pages bot commented Feb 28, 2024

Deploying with Β Cloudflare Pages Β Cloudflare Pages

Latest commit: 2c7aa2d
Status:Β βœ…Β  Deploy successful!
Preview URL: https://9560a65f.undocs.pages.dev
Branch Preview URL: https://chore-featuresstyles.undocs.pages.dev

View logs

@cpreston321 cpreston321 marked this pull request as ready for review February 28, 2024 19:15
:ui="{
icon: {
// If the icon is an emoji, we need to use a bigger size
base: /\p{Emoji}/u.test(item.icon)
Copy link
Member

Choose a reason for hiding this comment

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

TIL

Copy link
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

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

❀️

@pi0 pi0 merged commit ccb2cb0 into main Feb 29, 2024
3 checks passed
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.

emojis look small compared to the a icon
2 participants