Skip to content

Add "title" attribute to emojis - #437

Merged
jgierer12 merged 2 commits into
refined-github:masterfrom
lukaszklis:add-title-attr-emojis
May 28, 2017
Merged

jgierer12 merged 2 commits into
refined-github:masterfrom
lukaszklis:add-title-attr-emojis

Conversation

@lukaszklis

Copy link
Copy Markdown
Contributor

Fixes #278.

Comment thread extension/content.js Outdated
}

function addTitleToEmojis() {
const emojis = $('.js-comment-body, #readme').find('g-emoji');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This would not cover commits (message and body), markdown documents other than the readme and others. Why not just $('g-emoji')?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It would cover all of the emojis including the ones in reactions to a comment/issue created. I figured we care only about the things the user can define, thus such selector. Good point on the readme one, totally forgot about other possibilities. Can change it to something like $('. markdown-body').find('g-emoji') which would target the Markdown documents, issues, PRs, comments. WDYT?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@hkdobrev shall I change it to affect all of the g-emoji then? No matter where on the page they are displayed?

@jgierer12
jgierer12 merged commit 3181121 into refined-github:master May 28, 2017
@lukaszklis
lukaszklis deleted the add-title-attr-emojis branch May 28, 2017 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants