Skip to content

Add "title" attr to emojis #278

Closed
Closed

Description

@DrewML

Sometimes I have absolutely no idea what an emoji is that someone has used. The markup GitHub uses when rendering emojis is:

<g-emoji alias="cat" fallback-src="https://assets-cdn.github.com/images/icons/emoji/unicode/1f431.png">🐱</g-emoji>

It would be nice to be able to hover on the icon to actually see what it's name is. This would just involve copying the alias value to title.

Any objections?

Activity

  1. sindresorhus commented on Aug 8, 2016

    @sindresorhus
    Member

    I find the g-emoji thing annoying. They make emoji render different than the native. Example: https://github.com/sindresorhus/skin-tone (See the first emoji in the description):
    screen shot 2016-08-08 at 23 21 59

    I actually wanted to remove it, but if you see a value in it, we should at least remove the g-emoji style that makes it different.

  2. jacobbearden commented on Aug 12, 2016

    @jacobbearden
    Contributor

    Might be platform based but for me, emojis do have a title attribute:

    image

    and the markup is:

    <g-emoji alias="ok_hand" fallback-src="https://assets-cdn.github.com/images/icons/emoji/unicode/1f44c.png"><img class="emoji" title=":ok_hand:" alt=":ok_hand:" height="20" width="20" src="https://assets-cdn.github.com/images/icons/emoji/unicode/1f44c.png"></g-emoji>

    On an Ubuntu based operating system, using Chrome

  3. added
    small
    on May 14, 2017
  4. lukaszklis commented on May 23, 2017

    @lukaszklis
    Contributor

    What is the expected result here in the end? Adding the title attribute for g-emoji and removing the styling?

  5. hkdobrev commented on May 23, 2017

    @hkdobrev
    Contributor

    @jacobbearden It seems on Ubuntu the fallback-src is transferred to an <img> element with a title. Probably the raw emoji there is not supported.

  6. hkdobrev commented on May 23, 2017

    @hkdobrev
    Contributor

    @lukaszklis I think we should at least have the title attribute before anything else as it's quite annoying. This is what the original issue is about.

    @sindresorhus could you clarify what you mean? Perhaps revert the whole <g-emoji> and in practice force the fallback?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedenhancementsmall

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions