Skip to content

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

Merged
mgechev merged 1 commit intomgechev:masterfrom
mohammedzamakhan:no-distracting-elements
Feb 15, 2019
Merged

feat(rule): no distracting elements should be used#760
mgechev merged 1 commit intomgechev:masterfrom
mohammedzamakhan:no-distracting-elements

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.

3 participants