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

Add accessible-emoji a11y check #4805

Closed
wants to merge 1 commit into from

Conversation

BillyLevin
Copy link
Contributor

Warns if an emoji isn't accessible i.e. not wrapped in a <span> with role="img" and aria-label. More info

Part of the list in #820

@BillyLevin BillyLevin marked this pull request as draft May 8, 2020 22:33
const { data, component, parent } = this;

// https://github.com/mathiasbynens/emoji-regex/blob/master/src/index.js
const emoji_regex =/<% emojiSequence %>|\p{Emoji_Presentation}|\p{Emoji}\uFE0F|\p{Emoji_Modifier_Base}/gu;
Copy link
Member

Choose a reason for hiding this comment

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

Even though it's now EOL, Node 8 is still officially supported by Svelte 3, which means we can't use regex features like this - and this is failing CI which is running on Node 8, 10, 12, and 14.

There's also a previous PR #4411 for this that's been languishing for a little bit, but which is compatible with Node 8.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops - completely forgot to check for existing PRs. In that case I'll close this one. Thanks :)

@BillyLevin BillyLevin closed this May 8, 2020
@BillyLevin BillyLevin deleted the a11y-emojis branch May 8, 2020 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants