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

Wcag - warnings #239

Closed
emilos opened this issue Jun 12, 2018 · 1 comment
Closed

Wcag - warnings #239

emilos opened this issue Jun 12, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@emilos
Copy link
Contributor

emilos commented Jun 12, 2018

We could implement few simple wcag rules:

img should always have an alt attribute

We should show the warnings durign compilation. You should be able to turn off the warnings.

Ideally we should reuse other lib.

@emilos emilos added the enhancement New feature or request label Jun 12, 2018
@emilos
Copy link
Contributor Author

emilos commented Jun 20, 2018

We could try to implement the rules in a reusable json format, e.g.

{
  "rules": [
    {
      "name": "alt-required",
      "tags": ["image"],
      "attributes": ["alt"],
      "rule": ["required"]
    }
  ]
}

@emilos emilos changed the title wcag - warnings Wcag - warnings Oct 26, 2018
@emilos emilos closed this as completed Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant