Class: A11y::Lint::Rules::MissingAccessibleName
- Inherits:
-
A11y::Lint::Rule
- Object
- A11y::Lint::Rule
- A11y::Lint::Rules::MissingAccessibleName
- Defined in:
- lib/a11y/lint/rules/robust/missing_accessible_name.rb
Overview
Checks that link_to, external_link_to, and button_tag calls with empty text or block content include an aria-label (WCAG 4.1.2).
Constant Summary collapse
- METHODS =
%w[link_to external_link_to button_tag].freeze
Instance Method Summary collapse
Methods inherited from A11y::Lint::Rule
Constructor Details
This class inherits a constructor from A11y::Lint::Rule
Instance Method Details
#check ⇒ Object
11 12 13 14 15 |
# File 'lib/a11y/lint/rules/robust/missing_accessible_name.rb', line 11 def check return if no_offense? (helper_call.method_name) end |