Class: A11y::Lint::Rules::SimpleFormInputMissingAccessibleName
- Defined in:
- lib/a11y/lint/rules/robust/simple_form_input_missing_accessible_name.rb
Overview
Checks that Simple Form ‘form.input` calls with `label: false` / `label: “”` provide an accessible name through `input_html:` `aria-label` or `aria-labelledby` (WCAG 4.1.2). Skips `as: :hidden`, which doesn’t render a visible control.
Instance Method Summary collapse
Methods inherited from NodeRule
Constructor Details
This class inherits a constructor from A11y::Lint::NodeRule
Instance Method Details
#check ⇒ Object
11 12 13 14 15 |
# File 'lib/a11y/lint/rules/robust/simple_form_input_missing_accessible_name.rb', line 11 def check return if no_offense? end |