Repository navigation
Initial d2l-emoji-selector. - #7773
Conversation
|
Thanks for the PR! 🎉 We've deployed an automatic preview for this PR - you can see your changes here:
Note The build needs to finish before your changes are deployed. |
| @click="${this.#handleEmojiClick}" | ||
| data-key="${emoji}" | ||
| tabindex="${activeFocusable === emoji || (!activeFocusable && index === 0) ? 0 : -1}" | ||
| title="${props.desc}" |
There was a problem hiding this comment.
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') { |
There was a problem hiding this comment.
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>
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>
|
Ok, I've rejigged things as discussed this morning, so that we can easily leverage this for other characters as well. |
There was a problem hiding this comment.
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>
|
🎉 This PR is included in version 3.352.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
GAUD-10875
This PR creates the base
d2l-emoji-selectorcomponent. To begin, this just presents groups of emojis the user can click, and use arrow keys to navigate. Things to come:d2l-dropdown-emojicontent for use with an opener of the consumer's choice