Skip to content

Initial d2l-emoji-selector. - #7773

Merged
dbatiste merged 17 commits into
mainfrom
dbatiste/emoji-setup
Dec 4, 2026
Merged

dbatiste merged 17 commits into
mainfrom
dbatiste/emoji-setup

Conversation

@dbatiste

@dbatiste dbatiste commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

GAUD-10875

This PR creates the base d2l-emoji-selector component. To begin, this just presents groups of emojis the user can click, and use arrow keys to navigate. Things to come:

  • Search capability (which requires the localization data)
  • Keyboard instructions
  • Tabs/Links for the groups
  • Skin tone selector
  • Recently used emoji group
  • d2l-dropdown-emoji content for use with an opener of the consumer's choice

@dbatiste
dbatiste requested a review from a team as a code owner December 3, 2026 21:11
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Thanks for the PR! 🎉

We've deployed an automatic preview for this PR - you can see your changes here:

URL https://live.d2l.dev/prs/BrightspaceUI/core/pr-7773/

Note

The build needs to finish before your changes are deployed.
Changes to the PR will automatically update the instance.

@click="${this.#handleEmojiClick}"
data-key="${emoji}"
tabindex="${activeFocusable === emoji || (!activeFocusable && index === 0) ? 0 : -1}"
title="${props.desc}"

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.

This title is just temporary. Once we get localized short names, we'll likely display those.

const index = focusables.findIndex(item => item === e.target);

let focusable;
if (isRtl && e.key === 'ArrowLeft') {

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.

This is basically the same logic that d2l-toolbar uses. I began factoring it out and then remembered that this will likely get enhanced to enable moving between rows, which will require measurement or knowledge of how many emoji are on the row.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Comment thread components/emoji/test/emoji.test.js Resolved
Comment thread components/emoji/test/emoji.test.js Resolved
Comment thread components/emoji/test/emoji.test.js Resolved
Comment thread components/emoji/test/emoji.vdiff.js Resolved
Comment thread components/emoji/emoji-selector.js Resolved
Comment thread components/emoji/emoji-selector.js Resolved
Comment thread components/emoji/emoji-selector.js Resolved
dbatiste and others added 5 commits December 4, 2026 10:17
Co-authored-by: Dave Lockhart <5491151+dlockhart@users.noreply.github.com>
Co-authored-by: Dave Lockhart <5491151+dlockhart@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@dbatiste

dbatiste commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

Ok, I've rejigged things as discussed this morning, so that we can easily leverage this for other characters as well.

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.

We'll expand on the vdiffs as we iterate to add features. If necessary, we can add emoji-specific tests (ex. when we introduce skin tones).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@dbatiste
dbatiste requested a review from dlockhart December 4, 2026 21:23

@dlockhart dlockhart left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Off to a good start!

@dbatiste
dbatiste merged commit bea3a86 into main Dec 4, 2026
14 checks passed
@dbatiste
dbatiste deleted the dbatiste/emoji-setup branch December 4, 2026 21:59
@d2l-github-release-tokens

Copy link
Copy Markdown

🎉 This PR is included in version 3.352.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

2 participants