Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- uses: actions/checkout@v5
- name: Setup Ruby
uses: ruby/setup-ruby@2a7b30092b0caf9c046252510f9273b4875f3db9
uses: ruby/setup-ruby@829114fc20da43a41d27359103ec7a63020954d4
with:
ruby-version: '3.0'
bundler-cache: true
Expand All @@ -25,7 +25,7 @@ jobs:
steps:
- uses: actions/checkout@v5
- name: Setup Ruby
uses: ruby/setup-ruby@2a7b30092b0caf9c046252510f9273b4875f3db9
uses: ruby/setup-ruby@829114fc20da43a41d27359103ec7a63020954d4
with:
ruby-version: '3.0'
bundler-cache: true
Expand All @@ -38,7 +38,7 @@ jobs:
steps:
- uses: actions/checkout@v5
- name: Setup Ruby
uses: ruby/setup-ruby@2a7b30092b0caf9c046252510f9273b4875f3db9
uses: ruby/setup-ruby@829114fc20da43a41d27359103ec7a63020954d4
with:
ruby-version: '3.0'
bundler-cache: true
Expand All @@ -51,7 +51,7 @@ jobs:
steps:
- uses: actions/checkout@v5
- name: Setup Ruby
uses: ruby/setup-ruby@2a7b30092b0caf9c046252510f9273b4875f3db9
uses: ruby/setup-ruby@829114fc20da43a41d27359103ec7a63020954d4
with:
ruby-version: '3.0'
bundler-cache: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module Accessibility
class NoVisuallyHiddenInteractiveElements < Linter
include ERBLint::Linters::CustomHelpers
include LinterRegistry

INTERACTIVE_ELEMENTS = %w[a button summary select option textarea].freeze

MESSAGE = "Avoid visually hidding interactive elements. Visually hiding interactive elements can be confusing to sighted keyboard users as it appears their focus has been lost when they navigate to the hidden element"
Expand Down