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

heading-has-content should not error when v-html is used #26

Open
TheJaredWilcurt opened this issue Feb 18, 2020 · 0 comments
Open

heading-has-content should not error when v-html is used #26

TheJaredWilcurt opened this issue Feb 18, 2020 · 0 comments

Comments

@TheJaredWilcurt
Copy link

error: Headings must have content and the content must be accessible by a screen reader
      (vue-a11y/heading-has-content) at src\components\utilities\BaseTitle.vue:3:5:
  1 | <template>
  2 |   <div data-test="baseTitle">
> 3 |     <h3 v-html="title"></h3>
    |     ^

In this component title is a required prop. So the <h3> will always have content. Currently we have to add a <!-- eslint-disable-next-line vue-a11y/heading-has-content -->.

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

No branches or pull requests

1 participant