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

[BUG] Help text on Static Text indicates max of 3 characters/emojis but only seems to display first emoji followed by a ? symbol #168

Open
jenxyz opened this issue May 22, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@jenxyz
Copy link

jenxyz commented May 22, 2024

Describe the bug
The Help text for the 'Static Text' field on an Indicator Item displays '... Displays the first 3 characters / emojis'
In an Indicator Item Extension, if I enter 2 emojis in the Static Text field, the first one displays on the record page but any subsequent ones are replaced with an icon of a diamond with a question mark inside it.

To Reproduce
Steps to reproduce the behavior:

  1. In Setup go to Custom Metadata Types
  2. Next to 'Indicator Item Extension' click 'Manage Records'
  3. Select a record and Edit it
  4. Enter '🥲😍' as the Static Text
  5. Save it
  6. View a record that should display the Indicator.
  7. It only shows the first icon then a diamond icon with a question mark in the middle

Expected behavior
I should see the same icons that were entered as Static Text

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 11 Home
  • Browser chrome
  • Version 125.0.6422.60 (Official Build) (64-bit)

Record Page
Indicator Item Extension

@JodieM
Copy link
Contributor

JodieM commented Sep 12, 2024

Good to look at #166 with this one too. I think we introduced this when we did #144. Also see #175 where we will need to show the full field text.

@JodieM
Copy link
Contributor

JodieM commented Sep 12, 2024

Check if a space between emojis works

@jenxyz
Copy link
Author

jenxyz commented Sep 13, 2024

Hi Jodie, hope you are doing well and thanks for looking into this!

Interestingly, adding a space doesn't appear to make a difference:

  1. Using the same 2 emojis as I used on the bug report, I do now see both emojis but one underneath the other :
    smileys

  2. Using 2 different emojis they appear correctly (with or without the space):
    differentEmojis

@tschug
Copy link
Contributor

tschug commented Sep 26, 2024

I'm wondering if this is a Chrome / SLDS issue.

It's a similar bug to this one (which indicates that it has to do with wrapping emojis).

I was able to reproduce the error (even with 2 different emojis), but when I removed our forced "3-characters" limit it was no longer an issue, but it did the wrap that was shown above, which could also imply something to do with width. Which makes me think maybe it's a combo of issues.

Not sure how we should resolve, as I think we want to keep the 3-character limit.

Perhaps we have to allow the 3-character limit to be disabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: To triage
Development

No branches or pull requests

3 participants