Skip to content

Commit

Permalink
Update example markup for consistency and errors (#2967)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisrng committed Aug 28, 2023
1 parent 8ad1bc2 commit 3abccb8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/rule/no-empty-headings.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This rule **forbids** the following:
```

```hbs
<h*><span aria-hidden="true">Inaccessible text<span></h*>
<h*><span aria-hidden="true">Inaccessible text</span></h*>
```

This rule **allows** the following:
Expand Down
2 changes: 1 addition & 1 deletion docs/rule/no-invalid-aria-attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This rule **forbids** the following:

```hbs
<input type="text" aria-not-real="true" />
<div role="region" aria-live="bogus">Inaccessible live region</div>',
<div role="region" aria-live="bogus">Inaccessible live region</div>
<button type="submit" disabled="true" aria-disabled="123">Submit</button>
```

Expand Down
2 changes: 1 addition & 1 deletion docs/rule/require-lang-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ This rule **forbids** the following:
```

```hbs
<html lang="abracadabra"></Html>
<html lang="abracadabra"></html>
```

This rule **allows** the following:
Expand Down
4 changes: 2 additions & 2 deletions docs/rule/require-valid-alt-text.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ Numbers are not considered valid alt text, and this rule disallows using only nu
This rule **forbids** the following:

```hbs
<img src="rwjblue.png">
<img src="rwjblue.png" />
<img src="foo" alt="Photo of foo being weird." />
<img src="foo" alt="YourCompany logo" />
<img src="bar" alt="Image of me at a bar!" />
<img src="baz" alt="Picture of baz fixing a bug." />
<img src="b52.jpg" alt="52" />
<img src="foo" alt="foo as a banana" role="presentation">
<img src="foo" alt="foo as a banana" role="presentation" />
```

This rule **allows** the following:
Expand Down

0 comments on commit 3abccb8

Please sign in to comment.