diff --git a/CHANGELOG.md b/CHANGELOG.md index 209cc74f..9b7b7ee2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a ## [Unreleased] +### Added + +- The `controlComponents` option for the `label-has-for` rule, which allows you to configure the rule to allow additional control components. + ## [0.3.1] - 2020-07-10 ### Changed diff --git a/docs/label-has-for.md b/docs/label-has-for.md index eeb4637b..7da1865a 100644 --- a/docs/label-has-for.md +++ b/docs/label-has-for.md @@ -17,7 +17,8 @@ This rule takes one optional object argument of type object: "vuejs-accessibility/label-has-for": [ "error", { - "components": ["Label"], + "components": ["VLabel"], + "controlComponents": ["VInput"], "required": { "every": ["nesting", "id"] }, @@ -28,7 +29,9 @@ This rule takes one optional object argument of type object: } ``` -For the `components` option, these strings determine which JSX elements (**always including** `