Skip to content

Commit 8409d4d

Browse files
committed
Cleanup
1 parent 988d1ee commit 8409d4d

24 files changed

Lines changed: 154 additions & 72 deletions

README.md

Lines changed: 154 additions & 20 deletions
Large diffs are not rendered by default.

docs/rules/template-builtin-component-arguments.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
<!-- end auto-generated rule header -->
44

5-
✅ The `extends: 'recommended'` property in a configuration file enables this rule.
6-
75
The builtin `Input` component has several arguments that match attributes
86
of the lower-case `input` HTML element. These arguments should be set via e.g.
97
`@type`, instead of `type`, but it is easy to forget and can cause subtle

docs/rules/template-deprecated-inline-view-helper.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
<!-- end auto-generated rule header -->
44

5-
✅ The `extends: 'recommended'` property in a configuration file enables this rule.
6-
75
In Ember 1.12, support for invoking the inline View helper was deprecated.
86

97
## Examples

docs/rules/template-no-args-paths.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
<!-- end auto-generated rule header -->
44

5-
✅ The `extends: 'recommended'` property in a configuration file enables this rule.
6-
75
Arguments that are passed to components are prefixed with the `@` symbol in Angle bracket syntax.
86
Ember Octane leverages this in the component's templates by allowing users to directly refer to an argument using the same prefix:
97

docs/rules/template-no-aria-hidden-body.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44

55
<!-- end auto-generated rule header -->
66

7-
✅ The `extends: 'recommended'` property in a configuration file enables this rule.
8-
9-
🔧 The `--fix` option on the command line can automatically fix some of the problems reported by this rule.
10-
117
The aria-hidden attribute should never be present on the `<body>` element, as it hides the entire document from assistive technology.
128

139
## Examples

docs/rules/template-no-attrs-in-components.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
<!-- end auto-generated rule header -->
44

5-
✅ The `extends: 'recommended'` property in a configuration file enables this rule.
6-
75
This rule prevents the usage of `attrs` property to access values passed to the component since all the values can be accessed directly from the template.
86

97
## Examples

docs/rules/template-no-duplicate-id.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
<!-- end auto-generated rule header -->
44

5-
✅ The `extends: 'recommended'` property in a configuration file enables this rule.
6-
75
Valid HTML requires that `id` attribute values are unique.
86

97
This rule does a basic check to ensure that `id` attribute values are not the same.

docs/rules/template-no-empty-headings.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
<!-- end auto-generated rule header -->
44

5-
✅ The `extends: 'recommended'` property in a configuration file enables this rule.
6-
75
Headings relay the structure of a webpage and provide a meaningful, hierarchical order of its content. If headings are empty or its text contents are inaccessible, this could confuse users or prevent them accessing sections of interest.
86

97
Disallow headings (h1, h2, etc.) with no accessible text content.

docs/rules/template-no-forbidden-elements.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
<!-- end auto-generated rule header -->
44

5-
✅ The `extends: 'recommended'` property in a configuration file enables this rule.
6-
75
This rule disallows the use of forbidden elements in template files.
86

97
The rule is configurable so teams can add their own disallowed elements.

docs/rules/template-no-heading-inside-button.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
<!-- end auto-generated rule header -->
44

5-
✅ The `extends: 'recommended'` property in a configuration file enables this rule.
6-
75
Assistive technology allows users to browse a page by heading elements (`<h1>` - `<h6>`). However, if those heading elements are nested inside of button elements, they will automatically be marked as presentational by browsers. Any HTML element where ["children presentational" is true](https://w3c.github.io/aria/#button) should be coerced by the browser to be presentational, and therefore not included in the accessibility tree.
86

97
As such, nesting a heading element inside of a button element will cause failures for WCAG requirement 1.3.1, Info and Relationships, because the heading has lost semantic meaning.

0 commit comments

Comments
 (0)