eslint-plugin-vuejs-accessibility icon indicating copy to clipboard operation
eslint-plugin-vuejs-accessibility copied to clipboard

Require custom label components to have a specific attribute

Open Larspolo opened this issue 1 year ago • 0 comments

Vue bootstrap makes use of a parent component that requires a label attribute before it actually has a label. This is currently not enforcable with the configuration options allowed by form-control-has-label

As an example, see this use case: https://bootstrap-vue.org/docs/components/form-group#label

    <b-form-group
      label="Enter your name"
      label-for="input-horizontal"
    >
      <b-form-input id="input-horizontal"></b-form-input>
    </b-form-group>

Larspolo avatar Jan 15 '23 12:01 Larspolo