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

feat(rule): no distracting elements should be used #760

Merged
merged 1 commit into from Feb 15, 2019
Merged

feat(rule): no distracting elements should be used #760

merged 1 commit into from Feb 15, 2019

Conversation

mohammedzamakhan
Copy link
Contributor

No description provided.

typescriptOnly: true
};

static readonly FAILURE_STRING = 'Avoid using <%s> elements as they create visual accessibility issues.';
Copy link
Owner

Choose a reason for hiding this comment

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

<%s> -> <%s/>

}

private validateElement(el: ElementAst): void {
if (el.name === 'marquee' || el.name === 'blink') {
Copy link
Collaborator

Choose a reason for hiding this comment

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

When I see this link, I'm not sure that we have to test 'blink'.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think its fine, since all the accessibility checkers and linters check for it. Sometimes developers use code generated or from old references.

@mgechev mgechev merged commit 6b21a9e into mgechev:master Feb 15, 2019
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.

None yet

3 participants